aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorForbes Lindesay <forbes@lindesay.co.uk>2014-01-08 13:44:10 +0000
committerDave Methvin <dave.methvin@gmail.com>2014-01-09 21:27:28 -0500
commit6de1d973a436282af7dfe3072924016c3cdc1984 (patch)
tree5972b18cd17991644cf1cf1a9827daa7199e892b /src
parent3118f58c465286d538404669d09026b882b2149e (diff)
downloadjquery-6de1d973a436282af7dfe3072924016c3cdc1984.tar.gz
jquery-6de1d973a436282af7dfe3072924016c3cdc1984.zip
Intro: Pass window to intro if available, for browserify
Closes gh-1476
Diffstat (limited to 'src')
-rw-r--r--src/intro.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intro.js b/src/intro.js
index 9e26008e2..f7dd78d3f 100644
--- a/src/intro.js
+++ b/src/intro.js
@@ -34,8 +34,8 @@
factory( global );
}
-// Pass this, window may not be defined yet
-}(this, function( window, noGlobal ) {
+// Pass this if window is not defined yet
+}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
// Can't do this because several apps including ASP.NET trace
// the stack via arguments.caller.callee and Firefox dies if