aboutsummaryrefslogtreecommitdiffstats
path: root/demos/accordion
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-01-31 14:07:17 -0500
committerScott González <scott.gonzalez@gmail.com>2012-01-31 14:07:17 -0500
commit66c7dfd377d91bd5867ce1a9b607e8ed25955241 (patch)
treed4945d8b4f9f0d51cb9bd71aeca4e00744e5cec5 /demos/accordion
parent853b515e5c6f02dff1a4693eaf6c16d8bafc1395 (diff)
downloadjquery-ui-66c7dfd377d91bd5867ce1a9b607e8ed25955241.tar.gz
jquery-ui-66c7dfd377d91bd5867ce1a9b607e8ed25955241.zip
Accordion demo: Clear out originalEvent in hoverintent special event. Fixes #6028 - Accordion: Hoverintent demo throws an error in IE.
Diffstat (limited to 'demos/accordion')
-rw-r--r--demos/accordion/hoverintent.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/demos/accordion/hoverintent.html b/demos/accordion/hoverintent.html
index 09360d62d..184951cf2 100644
--- a/demos/accordion/hoverintent.html
+++ b/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;