slimjack / IWC

Interwindow (cross-tab) communication JavaScript library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Observable.un is not removing the eventListener

martincastell opened this issue · comments

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.

Pull Request: #3

Merged. Thanks.