jQuery.event.dispatch should remove window.event
|Reported by:||snandy||Owned by:|
jQuery use addEventListener/attachEvent to add event handler. when use addEventListener, the event object will pass in handler's first argument.
attachEvent is the same as addEventListener when get the event object in IE6/7/8.
So, in the method jQuery.event.dispatch, the first line
event = jQuery.event.fix( event || window.event );
should modify as
event = jQuery.event.fix( event );
see testcase in IE6/7/8: http://jsfiddle.net/aLaD3/1/
Change History (3)
comment:1 Changed 3 years ago by dmethvin
- Component changed from unfiled to event
- Milestone changed from None to 1.9
- Priority changed from undecided to low
- Status changed from new to open