Skip to content

Commit 008861d

Browse files
committed
Draggable: Move _resetDomPosition() out of the interaction interface section.
1 parent 99c4de4 commit 008861d

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

ui/jquery.ui.draggable.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -180,24 +180,6 @@ $.widget( "ui.draggable", $.ui.interaction, {
180180
this._blockFrames();
181181
},
182182

183-
_resetDomPosition: function() {
184-
185-
// Nothing to do in this case
186-
if ( !this.domPosition ) {
187-
return;
188-
}
189-
190-
var parent = this.domPosition.parent,
191-
next = parent.children().eq( this.domPosition.index );
192-
if ( next.length ) {
193-
next.before( this.element );
194-
} else {
195-
parent.append( this.element );
196-
}
197-
this.element.offset( this.offset );
198-
this.domPosition = null;
199-
},
200-
201183
_move: function( event, pointerPosition ) {
202184
this._preparePosition( pointerPosition );
203185

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

256+
_resetDomPosition: function() {
257+
258+
// Nothing to do in this case
259+
if ( !this.domPosition ) {
260+
return;
261+
}
262+
263+
var parent = this.domPosition.parent,
264+
next = parent.children().eq( this.domPosition.index );
265+
if ( next.length ) {
266+
next.before( this.element );
267+
} else {
268+
parent.append( this.element );
269+
}
270+
this.element.offset( this.offset );
271+
this.domPosition = null;
272+
},
273+
274274
// TODO: Remove after 2.0, only used for backCompat
275275
_appendTo: function() {
276276
return this.options.appendTo;

0 commit comments

Comments
 (0)