Showing with 19 additions and 19 deletions.
  1. +19 −19 ui/jquery.ui.draggable.js
@@ -91,7 +91,7 @@ $.widget( "ui.draggable", $.ui.interaction, {
this.dragDimensions = null;

// The actual dragging element, should always be a jQuery object
this.dragEl = ( this.options.helper === true || $.isFunction( this.options.helper ) ) ?
this.dragEl = this.options.helper ?
this._createHelper( pointerPosition ) :
this.element;

@@ -180,24 +180,6 @@ $.widget( "ui.draggable", $.ui.interaction, {
this._blockFrames();
},

_resetDomPosition: function() {

// Nothing to do in this case
if ( !this.domPosition ) {
return;
}

var parent = this.domPosition.parent,
next = parent.children().eq( this.domPosition.index );
if ( next.length ) {
next.before( this.element );
} else {
parent.append( this.element );
}
this.element.offset( this.offset );
this.domPosition = null;
},

_move: function( event, pointerPosition ) {
this._preparePosition( pointerPosition );

@@ -271,6 +253,24 @@ $.widget( "ui.draggable", $.ui.interaction, {
};
},

_resetDomPosition: function() {

// Nothing to do in this case
if ( !this.domPosition ) {
return;
}

var parent = this.domPosition.parent,
next = parent.children().eq( this.domPosition.index );
if ( next.length ) {
next.before( this.element );
} else {
parent.append( this.element );
}
this.element.offset( this.offset );
this.domPosition = null;
},

// TODO: Remove after 2.0, only used for backCompat
_appendTo: function() {
return this.options.appendTo;