mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Draggable: Changed data uiDraggable to ui-draggable
This commit is contained in:
parent
854f6df2bc
commit
ea6c9fb48b
4
ui/jquery.ui.draggable.js
vendored
4
ui/jquery.ui.draggable.js
vendored
@ -214,7 +214,7 @@ $.widget( "ui.draggable", $.ui.interaction, {
|
|||||||
// If user cancels stop, leave helper there
|
// If user cancels stop, leave helper there
|
||||||
if ( this._trigger( "stop", event, this._fullHash( pointerPosition ) ) !== false ) {
|
if ( this._trigger( "stop", event, this._fullHash( pointerPosition ) ) !== false ) {
|
||||||
if ( this.options.helper ) {
|
if ( this.options.helper ) {
|
||||||
delete this.element.data( "uiDraggable" ).helper;
|
delete this.element.data( "ui-draggable" ).helper;
|
||||||
this.dragEl.remove();
|
this.dragEl.remove();
|
||||||
}
|
}
|
||||||
this._resetDomPosition();
|
this._resetDomPosition();
|
||||||
@ -248,7 +248,7 @@ $.widget( "ui.draggable", $.ui.interaction, {
|
|||||||
helper.appendTo( this._appendToEl() || this.document[0].body );
|
helper.appendTo( this._appendToEl() || this.document[0].body );
|
||||||
}
|
}
|
||||||
|
|
||||||
this.element.data( "uiDraggable" ).helper = helper;
|
this.element.data( "ui-draggable" ).helper = helper;
|
||||||
|
|
||||||
this._cacheDragDimensions( helper );
|
this._cacheDragDimensions( helper );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user