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:05:30 -0400
commitacdcc6b6a25a2ccddea6b27b2a2fc2b7ef0e2116 (patch)
tree34b0ea2124fae782dff93b78786a5dd8f6ec9025 /src/outro.js
parent894a6c1a6f0d051158ba208c5eb0e5b5385dec00 (diff)
downloadjquery-acdcc6b6a25a2ccddea6b27b2a2fc2b7ef0e2116.tar.gz
jquery-acdcc6b6a25a2ccddea6b27b2a2fc2b7ef0e2116.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 );
+}));