From: Alexander Schmitz Date: Thu, 14 May 2015 02:04:02 +0000 (-0400) Subject: Resizable: Remove core event/alias and deprecated module dependencies X-Git-Tag: 1.12.0-beta.1~269 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a17180202d6fd7c137feba9ecc228554d44a7a7e;p=jquery-ui.git Resizable: Remove core event/alias and deprecated module dependencies --- diff --git a/ui/resizable.js b/ui/resizable.js index 7aadd490c..6e51f4aac 100644 --- a/ui/resizable.js +++ b/ui/resizable.js @@ -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(); };