make it possible to be module#49
Conversation
in case of use browserify it fail with 'Cannot use 'in' operator to search for 'onhashchange' in undefined' because window is undefined. this patch fixes it.
|
Maybe it should use Anything using Perhaps it makes more sense to simply pass For comparison, jQuery core settled on the following jquery/jquery#1476: typeof window !== "undefined" ? window : this |
There was a problem hiding this comment.
Uncaught ReferenceError, I assume this is meant to be Function.
|
Oh, 9years ago. |
in case of use browserify it fail with 'Cannot use 'in' operator to search for 'onhashchange' in undefined' because window is undefined. this patch fixes it.