Cleanup hash routing

This commit is contained in:
djmaze 2020-09-23 14:44:46 +02:00
parent 939eb0fd78
commit 3757324e32
7 changed files with 8 additions and 52 deletions

View file

@ -101,14 +101,7 @@
* @return {Function|null} Handler function bound to the signal or `null` if binding was previously detached.
*/
detach () {
return this.isBound()? this._signal.remove(this._listener, this.context) : null;
}
/**
* @return {Boolean} `true` if binding is still bound to the signal and have a listener.
*/
isBound () {
return (!!this._signal && !!this._listener);
return (this._signal && this._listener) ? this._signal.remove(this._listener, this.context) : null;
}
/**
@ -118,20 +111,6 @@
return this._isOnce;
}
/**
* @return {Function} Handler function bound to the signal.
*/
getListener () {
return this._listener;
}
/**
* @return {Signal} Signal that listener is currently bound to.
*/
getSignal () {
return this._signal;
}
/**
* Delete instance properties
* @private