mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-09 17:37:02 +03:00
Cleanup hash routing
This commit is contained in:
parent
939eb0fd78
commit
3757324e32
7 changed files with 8 additions and 52 deletions
23
vendors/routes/signals.js
vendored
23
vendors/routes/signals.js
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue