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.addEventListener) {
|
||||
element.addEventListener(event,fnc,false);
|
||||
} else if (element && element.attachEvent) {
|
||||
} else if (element.attachEvent) {
|
||||
fnc = function() { return cb.apply(elm,arguments); }
|
||||
element.attachEvent("on"+event,fnc);
|
||||
}
|
||||
@@ -31,7 +31,7 @@ var OZ = {
|
||||
if (elm) {
|
||||
if (elm.removeListener) {
|
||||
elm.removeEventListener(e[1],e[2],false);
|
||||
} else if (elm && elm.detachEvent) {
|
||||
} else if (elm.detachEvent) {
|
||||
elm.detachEvent("on"+e[1],e[2]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user