diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-01-31 14:07:17 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-01-31 14:07:35 -0500 |
commit | 5d4df03b7084a335ca9ceb6a62277c72434c83af (patch) | |
tree | 39f1b4795d46800ab3811cea5486127149c1f5a5 /demos | |
parent | 69daf1794d691b4aa0d2c8914383880fbc820c0d (diff) | |
download | jquery-ui-5d4df03b7084a335ca9ceb6a62277c72434c83af.tar.gz jquery-ui-5d4df03b7084a335ca9ceb6a62277c72434c83af.zip |
Accordion demo: Clear out originalEvent in hoverintent special event. Fixes #6028 - Accordion: Hoverintent demo throws an error in IE.
(cherry picked from commit 66c7dfd377d91bd5867ce1a9b607e8ed25955241)
Diffstat (limited to 'demos')
-rw-r--r-- | demos/accordion/hoverintent.html | 4 |
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; |