mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Resizable: Remove core event/alias and deprecated module dependencies
This commit is contained in:
parent
7c419a7ba1
commit
a17180202d
@ -237,7 +237,7 @@ $.widget("ui.resizable", $.ui.mouse, {
|
|||||||
this._handles = this._handles.add( this.element.find( ".ui-resizable-handle" ) );
|
this._handles = this._handles.add( this.element.find( ".ui-resizable-handle" ) );
|
||||||
this._handles.disableSelection();
|
this._handles.disableSelection();
|
||||||
|
|
||||||
this._handles.mouseover(function() {
|
this._handles.on( "mouseover", function() {
|
||||||
if (!that.resizing) {
|
if (!that.resizing) {
|
||||||
if (this.className) {
|
if (this.className) {
|
||||||
axis = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);
|
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._handles.hide();
|
||||||
this._addClass( "ui-resizable-autohide" );
|
this._addClass( "ui-resizable-autohide" );
|
||||||
$(this.element)
|
$(this.element)
|
||||||
.mouseenter(function() {
|
.on( "mouseenter", function() {
|
||||||
if (o.disabled) {
|
if (o.disabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
that._removeClass( "ui-resizable-autohide" );
|
that._removeClass( "ui-resizable-autohide" );
|
||||||
that._handles.show();
|
that._handles.show();
|
||||||
})
|
})
|
||||||
.mouseleave(function() {
|
.on( "mouseleave", function() {
|
||||||
if (o.disabled) {
|
if (o.disabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -280,7 +280,7 @@ $.widget("ui.resizable", $.ui.mouse, {
|
|||||||
$(exp)
|
$(exp)
|
||||||
.removeData("resizable")
|
.removeData("resizable")
|
||||||
.removeData("ui-resizable")
|
.removeData("ui-resizable")
|
||||||
.unbind(".resizable")
|
.off(".resizable")
|
||||||
.find(".ui-resizable-handle")
|
.find(".ui-resizable-handle")
|
||||||
.remove();
|
.remove();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user