Support CommonJS environments by accentuating the need for a window with a document. Fixes #13768.

This commit is contained in:
Timmy Willison
2013-07-04 14:00:26 -04:00
parent 894a6c1a6f
commit acdcc6b6a2
4 changed files with 40 additions and 25 deletions

View File

@@ -1,2 +1,6 @@
// Expose jQuery and $ identifiers, even in
// AMD (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
// and CommonJS for browser emulators (#13566)
return (window.jQuery = window.$ = jQuery);
})( window );
}));