]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion demo: Clear out originalEvent in hoverintent special event. Fixes #6028...
authorScott González <scott.gonzalez@gmail.com>
Tue, 31 Jan 2012 19:07:17 +0000 (14:07 -0500)
committerScott González <scott.gonzalez@gmail.com>
Tue, 31 Jan 2012 19:07:35 +0000 (14:07 -0500)
(cherry picked from commit 66c7dfd377d91bd5867ce1a9b607e8ed25955241)

demos/accordion/hoverintent.html

index 09360d62da41baf81c87a266c7e5eeeccb2fafe4..184951cf2e136deedd15c3b542dcb9eb806131b7 100644 (file)
                                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;