- // And bind the global event handler to the element
- if (element.addEventListener)
- element.addEventListener(type, this.handle, false);
- else if (element.attachEvent)
- element.attachEvent("on" + type, this.handle, false);
+ // And bind the global event handler to the element
+ if (element.addEventListener)
+ element.addEventListener(type, element.$handle, false);
+ else if (element.attachEvent)
+ element.attachEvent("on" + type, element.$handle, false);
+ }