-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug in CallbackRegistry#remove #38
Comments
intale
added a commit
to intale/pusher-js
that referenced
this issue
Apr 23, 2013
Thanks for catching this! I added a test case for this bug and adjusted the code to our standards. Your fix will be released in 2.0.3, most probably today. |
Thanks! |
pl
pushed a commit
that referenced
this issue
Apr 24, 2013
ecarter
pushed a commit
to ecarter/pusher-js
that referenced
this issue
Mar 25, 2014
Add tests for dependency loader
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/pusher/pusher-js/blob/master/src/events_dispatcher.js#L67
If index is -1, last callback function will be deleted. So, in this case, if I did, e.g.:
channel.bind("user-updated", func1)
and then
channel.unbind("user-updated", someAnotherFunc)
it will delete func1 callback, which is wrong.
The text was updated successfully, but these errors were encountered: