]> source.dussan.org Git - jquery-ui.git/commitdiff
Demos accordion hoverintent: moved event.type setter to not clobber event.type. Parti...
authorRichard D. Worth <rdworth@gmail.com>
Fri, 11 Nov 2011 14:24:55 +0000 (09:24 -0500)
committerRichard D. Worth <rdworth@gmail.com>
Fri, 11 Nov 2011 14:24:55 +0000 (09:24 -0500)
demos/accordion/hoverintent.html

index ce4703117b19db9744aaf2444cd7125ff41728d2..e39fb6d52134e9997267ed39c728ad3b9b96d83b 100644 (file)
@@ -29,7 +29,6 @@
                        $( this ).unbind( "mouseover", jQuery.event.special.hoverintent.handler );
                },
                handler: function( event ) {
-                       event.type = "hoverintent";
                        var self = this,
                                args = arguments,
                                target = $( event.target ),
@@ -50,6 +49,7 @@
                        function handler() {
                                if ( ( Math.abs( pX - cX ) + Math.abs( pY - cY ) ) < cfg.sensitivity ) {
                                        clear();
+                                       event.type = "hoverintent";
                                        jQuery.event.handle.apply( self, args );
                                } else {
                                        pX = cX;