Travis build: 1181 [cron]

This commit is contained in:
30secondsofcode
2019-05-30 15:52:26 +00:00
parent 6b4b006ff1
commit d6ac81d9e1
7 changed files with 11 additions and 8 deletions

View File

@ -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];",
" }",
"});"
],