Skip to content

Conversation

jfirebaugh
Copy link
Member

In a browserify package, this will refer to a node-style exports object, not
window. So just reference window directly.

In a browserify package, `this` will refer to a node-style
exports object, not window. So just reference `window`
directly.
mourner added a commit that referenced this pull request Apr 8, 2013
Compatibility with browserify
@mourner mourner merged commit 892ed86 into Leaflet:master Apr 8, 2013
@jfirebaugh jfirebaugh deleted the browserify branch April 8, 2013 15:02
@mourner
Copy link
Member

mourner commented Apr 8, 2013

Thanks!

@dougajmcdonald
Copy link

Is this fix in a particular release? still seeing the issue in 0.7.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants