Implement off method for Events class
This commit is contained in:
parent
529be8c55e
commit
29bd778757
1 changed files with 4 additions and 0 deletions
|
@ -512,6 +512,10 @@ class Events {
|
|||
static on(type, callback) {
|
||||
return window.addEventListener(type, callback, false);
|
||||
}
|
||||
|
||||
static off(type, callback) {
|
||||
return window.removeEventListener(type, callback, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue