2 * jQuery JavaScript Library v@VERSION
5 * Copyright OpenJS Foundation and other contributors
6 * Released under the MIT license
7 * https://jquery.org/license
11 // Expose a factory as `jQueryFactory`. Aimed at environments without
12 // a real `window` where an emulated window needs to be constructed. Example:
14 // const jQuery = require( "jquery/factory" )( window );
16 // See ticket trac-14549 for more info.
17 function jQueryFactoryWrapper( window
, noGlobal
) {
21 if ( !window
.document
) {
22 throw new Error( "jQuery requires a window with a document" );
26 // build.js inserts compiled jQuery here
32 function jQueryFactory( window
) {
35 return jQueryFactoryWrapper( window
, true );
38 module
.exports
= { jQueryFactory
: jQueryFactory
};