new oz.js
--HG-- extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%4068
This commit is contained in:
@@ -16,7 +16,7 @@ var OZ = {
|
|||||||
if (element) {
|
if (element) {
|
||||||
if (element.addEventListener) {
|
if (element.addEventListener) {
|
||||||
element.addEventListener(event,fnc,false);
|
element.addEventListener(event,fnc,false);
|
||||||
} else if (element && element.attachEvent) {
|
} else if (element.attachEvent) {
|
||||||
fnc = function() { return cb.apply(elm,arguments); }
|
fnc = function() { return cb.apply(elm,arguments); }
|
||||||
element.attachEvent("on"+event,fnc);
|
element.attachEvent("on"+event,fnc);
|
||||||
}
|
}
|
||||||
@@ -31,7 +31,7 @@ var OZ = {
|
|||||||
if (elm) {
|
if (elm) {
|
||||||
if (elm.removeListener) {
|
if (elm.removeListener) {
|
||||||
elm.removeEventListener(e[1],e[2],false);
|
elm.removeEventListener(e[1],e[2],false);
|
||||||
} else if (elm && elm.detachEvent) {
|
} else if (elm.detachEvent) {
|
||||||
elm.detachEvent("on"+e[1],e[2]);
|
elm.detachEvent("on"+e[1],e[2]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user