Travis build: 1179
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user