mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-05-25 21:34:42 +00:00
Implement off method for Events class
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user