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
clearListeners() does not check for the existence of the _emitterListeners property before calling _emitterListeners.filterAll(). If _emitterListeners is undefined, it throws an error.
clearListeners: function clearListeners(context) {
...
this._emitterListeners.filterAll(function(record) {
...
}
off() checks for _emitterListeners, so using off(null, null, this), which calls clearListeners(), works as expected.
off: function off(eventIdentifier, callback, context) {
// not initialised - so no listeners of any kind
if (this._emitterListeners == null) { return false; }
...
...
this.clearListeners(this);
...
}
The text was updated successfully, but these errors were encountered:
clearListeners()
does not check for the existence of the_emitterListeners
property before calling_emitterListeners.filterAll()
. If_emitterListeners
is undefined, it throws an error.off()
checks for_emitterListeners
, so usingoff(null, null, this)
, which callsclearListeners()
, works as expected.The text was updated successfully, but these errors were encountered: