You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a OOP setup where multiple objects are tapping in to the same event they should be able to unbind without side effects.
Suggestion
I think on(...) should return a unique id (int) so that it is possible to remove the binding with off(identifier). We should also introduce a convenience method offAllForEvent(event) or something like that for those cases where you actually want to remove all.
The text was updated successfully, but these errors were encountered:
In a OOP setup where multiple objects are tapping in to the same event they should be able to unbind without side effects.
Suggestion
I think
on(...)
should return a unique id (int) so that it is possible to remove the binding withoff(identifier)
. We should also introduce a convenience methodoffAllForEvent(event)
or something like that for those cases where you actually want to remove all.The text was updated successfully, but these errors were encountered: