Skip to content

Commit

Permalink
Intro: Pass window to intro if available, for browserify
Browse files Browse the repository at this point in the history
  • Loading branch information
ForbesLindesay authored and dmethvin committed Jan 10, 2014
1 parent 3118f58 commit 6de1d97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/intro.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6de1d97

Please sign in to comment.