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
{{ message }}
This repository has been archived by the owner on Dec 26, 2018. It is now read-only.
Never gets called since !Object.keys(this.mc.handlers).length always remain the same and that is total number of handlers that were bound to an element in the first place.
There's a part of code in your unbind hook that's never being called
Here's entire block of code.
this.mc.handlers
is Object having each handler bound inkey : [value]
fassionthis.mc.off(this.arg, this.handler)
does not remove handler from this object, instead it sets its value to empty array.That would mean that following lines:
Never gets called since
!Object.keys(this.mc.handlers).length
always remain the same and that is total number of handlers that were bound to an element in the first place.Better way to do it would be:
The text was updated successfully, but these errors were encountered: