Skip to content

Conversation

johtso
Copy link
Contributor

@johtso johtso commented Mar 17, 2012

Because of empty Arrays being truthy, the binary comparison caused the empty args to be passed to the function instead of arguments.

Fixes issue #574

Empty Arrays are truthy

Fixes issue Leaflet#574
mourner added a commit that referenced this pull request Mar 17, 2012
Fix bug in bind causing loss of arguments
@mourner mourner merged commit fa9e002 into Leaflet:master Mar 17, 2012
@mourner
Copy link
Member

mourner commented Mar 17, 2012

Thanks! I was just going to fix it when I saw your pull request. :)

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.

2 participants