this.bindHandler = (function() {
if (window.addEventListener) {
return function(elem, type, handler) {
elem.addEventListener(type, handler, false);
}
} else if (window.attachEvent) {
return function(elem, type, handler) {
elem.attachEvent("on" + type, handler);
}
}
})();
this.removeHandler = (function() {
if (window.removeEventListerner) {
return function(elem, type, handler) {
elem.removeEventListerner(type, handler, false);
}
} else if (window.detachEvent) {
return function(elem, type, handler) {
elem.detachEvent("on" + type, handler);
}
}
})();