Travis build: 1179

This commit is contained in:
30secondsofcode
2019-05-30 06:18:50 +00:00
parent e22e2251d2
commit 6b4b006ff1
6 changed files with 8 additions and 2 deletions

View File

@ -205,6 +205,7 @@ const createEventHub = () => ({
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];
}
});
const currentURL = () => window.location.href;