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