Line 8,069: | Line 8,069: | ||
(function( global, factory ) { | (function( global, factory ) { | ||
− | if ( typeof module | + | if ( typeof module === "object") { |
// For CommonJS and CommonJS-like environments where a proper `window` | // For CommonJS and CommonJS-like environments where a proper `window` | ||
// is present, execute the factory and get jQuery. | // is present, execute the factory and get jQuery. | ||
Line 8,077: | Line 8,077: | ||
// e.g. var jQuery = require("jquery")(window); | // e.g. var jQuery = require("jquery")(window); | ||
// See ticket #14549 for more info. | // See ticket #14549 for more info. | ||
− | module.exports = global.document ? | + | if (typeof module.exports === "object"){ |
+ | module.exports = global.document ? | ||
factory( global, true ) : | factory( global, true ) : | ||
function( w ) { | function( w ) { | ||
Line 8,085: | Line 8,086: | ||
return factory( w ); | return factory( w ); | ||
}; | }; | ||
+ | }else { | ||
+ | factory( global ); | ||
+ | } | ||
+ | |||
} else { | } else { | ||
factory( global ); | factory( global ); | ||
Line 19,076: | Line 19,081: | ||
"use strict"; | "use strict"; | ||
var b=a.fn.jquery.split(" ")[0].split("."); | var b=a.fn.jquery.split(" ")[0].split("."); | ||
− | |||
} | } | ||
Revision as of 06:56, 17 October 2018