Intro: Pass window to intro if available, for browserify

Closes gh-1476
(cherry picked from commit 6de1d973a4)
This commit is contained in:
Forbes Lindesay 2014-01-08 13:44:10 +00:00 committed by Dave Methvin
parent 551c12c242
commit eb827097b8

View 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