Open wheresrhys opened 10 years ago
Eve references the global scope using this. But in browserify this doesn't refer to window https://github.com/substack/node-browserify/issues/372, so eve isn't attached to the global object.
this
window
Could be fixed by passing in (window || this) to the closure.
(window || this)
Eve references the global scope using
this
. But in browserifythis
doesn't refer towindow
https://github.com/substack/node-browserify/issues/372, so eve isn't attached to the global object.Could be fixed by passing in
(window || this)
to the closure.