Skip to content

Commit a171802

Browse files
committed
Resizable: Remove core event/alias and deprecated module dependencies
1 parent 7c419a7 commit a171802

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/resizable.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ $.widget("ui.resizable", $.ui.mouse, {
237237
this._handles = this._handles.add( this.element.find( ".ui-resizable-handle" ) );
238238
this._handles.disableSelection();
239239

240-
this._handles.mouseover(function() {
240+
this._handles.on( "mouseover", function() {
241241
if (!that.resizing) {
242242
if (this.className) {
243243
axis = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);
@@ -250,14 +250,14 @@ $.widget("ui.resizable", $.ui.mouse, {
250250
this._handles.hide();
251251
this._addClass( "ui-resizable-autohide" );
252252
$(this.element)
253-
.mouseenter(function() {
253+
.on( "mouseenter", function() {
254254
if (o.disabled) {
255255
return;
256256
}
257257
that._removeClass( "ui-resizable-autohide" );
258258
that._handles.show();
259259
})
260-
.mouseleave(function() {
260+
.on( "mouseleave", function() {
261261
if (o.disabled) {
262262
return;
263263
}
@@ -280,7 +280,7 @@ $.widget("ui.resizable", $.ui.mouse, {
280280
$(exp)
281281
.removeData("resizable")
282282
.removeData("ui-resizable")
283-
.unbind(".resizable")
283+
.off(".resizable")
284284
.find(".ui-resizable-handle")
285285
.remove();
286286
};

0 commit comments

Comments
 (0)