Observable.un is not removing the eventListener
martincastell opened this issue · comments
Martin Castellanos commented
The problem is in the Observable module, when getting the listener, it's using eventListeners[i].listenerFn which doesn't exist.
if (eventListeners[i].listenerFn === listenerFn && eventListeners[i].scope === scope) {
The fix is to change eventListeners[i].listenerFn for eventListeners[i].fn.
Martin Castellanos commented
Pull Request: #3
Yevhenii Khudyi commented
Merged. Thanks.