mirror of
https://github.com/RobinLinus/snapdrop.git
synced 2025-05-15 23:20:11 -07:00
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…
x
Reference in New Issue
Block a user