mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-09 23:54:09 -06:00
Fix the missing once event handler after backbone removal. #5493
This commit is contained in:
parent
bbaf2ac46d
commit
f828951fc4
@ -18,6 +18,10 @@ export default class EventBus {
|
||||
this.registerListener(...args);
|
||||
}
|
||||
|
||||
once(...args) {
|
||||
this.registerListener(...args, true);
|
||||
}
|
||||
|
||||
deregisterListener(event, callback) {
|
||||
if(callback) {
|
||||
this._eventListeners = this._eventListeners.filter((e)=>{
|
||||
|
Loading…
Reference in New Issue
Block a user