fix(removeEvent): fix detachEvent typo (#475)

renovate/husky-9.x
Mathieu Jouhet 12 months ago committed by GitHub
parent aa2f12460a
commit 1e802bdf88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -11,8 +11,8 @@ function addEvent(object, event, method, useCapture) {
function removeEvent(object, event, method, useCapture) { function removeEvent(object, event, method, useCapture) {
if (object.removeEventListener) { if (object.removeEventListener) {
object.removeEventListener(event, method, useCapture); object.removeEventListener(event, method, useCapture);
} else if (object.deachEvent) { } else if (object.detachEvent) {
object.deachEvent(`on${event}`, method); object.detachEvent(`on${event}`, method);
} }
} }

Loading…
Cancel
Save