Travis build: 1181 [cron]
This commit is contained in:
@ -423,7 +423,7 @@
|
||||
" off(event, handler) {",
|
||||
" const i = (this.hub[event] || []).findIndex(h => h === handler);",
|
||||
" if (i > -1) this.hub[event].splice(i, 1);",
|
||||
" if (this.hub[event].length === 0) delete this.hub[event]",
|
||||
" if (this.hub[event].length === 0) delete this.hub[event];",
|
||||
" }",
|
||||
"});"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user