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) {
if (object.removeEventListener) {
object.removeEventListener(event, method, useCapture);
} else if (object.deachEvent) {
object.deachEvent(`on${event}`, method);
} else if (object.detachEvent) {
object.detachEvent(`on${event}`, method);
}
}

Loading…
Cancel
Save