Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Accordion demo: Clear out originalEvent in hoverintent special event.…

… Fixes #6028 - Accordion: Hoverintent demo throws an error in IE.

(cherry picked from commit 66c7dfd)
  • Loading branch information...
commit 5d4df03b7084a335ca9ceb6a62277c72434c83af 1 parent 69daf17
@scottgonzalez scottgonzalez authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 demos/accordion/hoverintent.html
View
4 demos/accordion/hoverintent.html
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.