]> source.dussan.org Git - jquery-ui.git/commitdiff
Resizable: Remove core event/alias and deprecated module dependencies
authorAlexander Schmitz <arschmitz@gmail.com>
Thu, 14 May 2015 02:04:02 +0000 (22:04 -0400)
committerAlexander Schmitz <arschmitz@gmail.com>
Wed, 20 May 2015 18:27:57 +0000 (14:27 -0400)
ui/resizable.js

index 7aadd490cbf35ed91b4ef692a65f57ca666b7339..6e51f4aac9faff0b062bfbcc109c49a5d8493c78 100644 (file)
@@ -237,7 +237,7 @@ $.widget("ui.resizable", $.ui.mouse, {
                this._handles = this._handles.add( this.element.find( ".ui-resizable-handle" ) );
                this._handles.disableSelection();
 
-               this._handles.mouseover(function() {
+               this._handles.on( "mouseover", function() {
                        if (!that.resizing) {
                                if (this.className) {
                                        axis = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);
@@ -250,14 +250,14 @@ $.widget("ui.resizable", $.ui.mouse, {
                        this._handles.hide();
                        this._addClass( "ui-resizable-autohide" );
                        $(this.element)
-                               .mouseenter(function() {
+                               .on( "mouseenter", function() {
                                        if (o.disabled) {
                                                return;
                                        }
                                        that._removeClass( "ui-resizable-autohide" );
                                        that._handles.show();
                                })
-                               .mouseleave(function() {
+                               .on( "mouseleave", function() {
                                        if (o.disabled) {
                                                return;
                                        }
@@ -280,7 +280,7 @@ $.widget("ui.resizable", $.ui.mouse, {
                                $(exp)
                                        .removeData("resizable")
                                        .removeData("ui-resizable")
-                                       .unbind(".resizable")
+                                       .off(".resizable")
                                        .find(".ui-resizable-handle")
                                                .remove();
                        };