aboutsummaryrefslogtreecommitdiffstats
path: root/src/outro.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-07-04 14:00:26 -0400
committerTimmy Willison <timmywillisn@gmail.com>2013-07-04 14:00:26 -0400
commit1f67d07c60c37e60052db37fc03d42af482c2d03 (patch)
tree190247a4b91a35338fdc339376c205eee1e39fdd /src/outro.js
parentaee465987c6e2db9e37900e91161584b2c92390e (diff)
downloadjquery-1f67d07c60c37e60052db37fc03d42af482c2d03.tar.gz
jquery-1f67d07c60c37e60052db37fc03d42af482c2d03.zip
Support CommonJS environments by accentuating the need for a window with a document. Fixes #13768.
Diffstat (limited to 'src/outro.js')
-rw-r--r--src/outro.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/outro.js b/src/outro.js
index ac484391c..20cec437c 100644
--- a/src/outro.js
+++ b/src/outro.js
@@ -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 );
+}));