MSThis - simulate W3C events in IE
Just posted a script I wrote which aims to tackle the age-old problem of IE registering events on Window rather than on the event trigger element.
This has long caused Javascript developers headaches since it means that, in event callbacks, the 'this' keyword does not point to the trigger element like it does in the W3C standard.
MSThis rectifies that, simulating W3C event-handling in IE. It works by storing an event handler on an element, then firing them as methods of it. Frameworks like jQuery probably do something similar to harmonise W3C vs. MS event implementations.
Head over here to download, get usage info or view a demo.
Comments (0)