Draggable: Changed data uiDraggable to ui-draggable

This commit is contained in:
Dave Stein 2013-02-18 11:59:31 -05:00
parent 854f6df2bc
commit ea6c9fb48b

View File

@ -214,7 +214,7 @@ $.widget( "ui.draggable", $.ui.interaction, {
// If user cancels stop, leave helper there
if ( this._trigger( "stop", event, this._fullHash( pointerPosition ) ) !== false ) {
if ( this.options.helper ) {
delete this.element.data( "uiDraggable" ).helper;
delete this.element.data( "ui-draggable" ).helper;
this.dragEl.remove();
}
this._resetDomPosition();
@ -248,7 +248,7 @@ $.widget( "ui.draggable", $.ui.interaction, {
helper.appendTo( this._appendToEl() || this.document[0].body );
}
this.element.data( "uiDraggable" ).helper = helper;
this.element.data( "ui-draggable" ).helper = helper;
this._cacheDragDimensions( helper );