Skip to content

Commit

Permalink
Accordion demo: Clear out originalEvent in hoverintent special event.…
Browse files Browse the repository at this point in the history
… Fixes #6028 - Accordion: Hoverintent demo throws an error in IE.

(cherry picked from commit 66c7dfd)
  • Loading branch information
scottgonzalez committed Jan 31, 2012
1 parent 69daf17 commit 5d4df03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions demos/accordion/hoverintent.html
Expand Up @@ -50,6 +50,10 @@
if ( ( Math.abs( pX - cX ) + Math.abs( pY - cY ) ) < cfg.sensitivity ) {
clear();
event.type = "hoverintent";
// prevent accessing the original event since the new event
// is fired asynchronously and the old event is no longer
// usable (#6028)
event.originalEvent = {};
jQuery.event.handle.apply( self, args );
} else {
pX = cX;
Expand Down

0 comments on commit 5d4df03

Please sign in to comment.