Implement off method for Events class

This commit is contained in:
Haocen 2022-09-13 08:33:03 -04:00 committed by GitHub
parent 529be8c55e
commit 29bd778757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}