]> source.dussan.org Git - jquery-ui.git/commitdiff
Resizable, Slider: Don't use .hover().
authorScott González <scott.gonzalez@gmail.com>
Mon, 21 May 2012 13:55:56 +0000 (09:55 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 21 May 2012 13:55:56 +0000 (09:55 -0400)
ui/jquery.ui.resizable.js
ui/jquery.ui.slider.js

index b4433b61813024f4094d756b175b21dc7b5fa6f3..6039cf648cb1c276ac3774335daa0ed95d252cb9 100644 (file)
@@ -171,12 +171,12 @@ $.widget("ui.resizable", $.ui.mouse, {
                        this._handles.hide();
                        $(this.element)
                                .addClass("ui-resizable-autohide")
-                               .hover(function() {
+                               .mouseenter(function() {
                                        if (o.disabled) return;
                                        $(this).removeClass("ui-resizable-autohide");
                                        that._handles.show();
-                               },
-                               function(){
+                               })
+                               .mouseleave(function(){
                                        if (o.disabled) return;
                                        if (!that.resizing) {
                                                $(this).addClass("ui-resizable-autohide");
index accd3e1891fafeb122d59fcdf88659ac6868be08..c302bfe8b8897f082da27407eaf87d1370f2159b 100644 (file)
@@ -90,11 +90,12 @@ $.widget( "ui.slider", $.ui.mouse, {
                        .click(function( event ) {
                                event.preventDefault();
                        })
-                       .hover(function() {
+                       .mouseenter(function() {
                                if ( !o.disabled ) {
                                        $( this ).addClass( "ui-state-hover" );
                                }
-                       }, function() {
+                       })
+                       .mouseleave(function() {
                                $( this ).removeClass( "ui-state-hover" );
                        })
                        .focus(function() {