@@ -180,24 +180,6 @@ $.widget( "ui.draggable", $.ui.interaction, {
180
180
this . _blockFrames ( ) ;
181
181
} ,
182
182
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
-
201
183
_move : function ( event , pointerPosition ) {
202
184
this . _preparePosition ( pointerPosition ) ;
203
185
@@ -271,6 +253,24 @@ $.widget( "ui.draggable", $.ui.interaction, {
271
253
} ;
272
254
} ,
273
255
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
+
274
274
// TODO: Remove after 2.0, only used for backCompat
275
275
_appendTo : function ( ) {
276
276
return this . options . appendTo ;
0 commit comments