]> source.dussan.org Git - jquery.git/commitdiff
Intro: Pass window to intro if available, for browserify
authorForbes Lindesay <forbes@lindesay.co.uk>
Wed, 8 Jan 2014 13:44:10 +0000 (13:44 +0000)
committerDave Methvin <dave.methvin@gmail.com>
Fri, 10 Jan 2014 02:31:24 +0000 (21:31 -0500)
Closes gh-1476
(cherry picked from commit 6de1d973a436282af7dfe3072924016c3cdc1984)

src/intro.js

index 9e26008e2132615c1d08bcbcf6d1c77f196baa4a..f7dd78d3f5197199d743a0549695e718464a821f 100644 (file)
@@ -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