Update intercooler to v1.2.2

This commit is contained in:
Jason McBrayer 2019-03-29 19:07:43 -04:00
parent 1a14dd8c3b
commit 464d6943b3
2 changed files with 5 additions and 2 deletions

View File

@ -4,7 +4,7 @@
define(["jquery"], function (a0) {
return (root['Intercooler'] = factory(a0));
});
} else if (typeof exports === 'object') {
} else if (typeof module === 'object' && module.exports) {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
@ -1092,7 +1092,7 @@ var Intercooler = Intercooler || (function() {
if(triggerOn[0].indexOf("sse:") == 0) {
//Server-sent event, find closest event source and register for it
var sourceElt = elt.closest(getICAttributeSelector('ic-sse-src'));
if(sourceElt) {
if(sourceElt.length > 0) {
registerSSE(sourceElt, triggerOn[0].substr(4))
}
} else {

File diff suppressed because one or more lines are too long