Implement off method for Events class
This commit is contained in:
parent
529be8c55e
commit
29bd778757
|
@ -512,6 +512,10 @@ class Events {
|
||||||
static on(type, callback) {
|
static on(type, callback) {
|
||||||
return window.addEventListener(type, callback, false);
|
return window.addEventListener(type, callback, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static off(type, callback) {
|
||||||
|
return window.removeEventListener(type, callback, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue