@@ -212,10 +212,10 @@ $.widget("ui.draggable", $.ui.mouse, {
212
212
return false ;
213
213
214
214
if ( ( this . options . revert == "invalid" && ! dropped ) || ( this . options . revert == "valid" && dropped ) || this . options . revert === true || ( $ . isFunction ( this . options . revert ) && this . options . revert . call ( this . element , dropped ) ) ) {
215
- var self = this ;
215
+ var that = this ;
216
216
$ ( this . helper ) . animate ( this . originalPosition , parseInt ( this . options . revertDuration , 10 ) , function ( ) {
217
- if ( self . _trigger ( "stop" , event ) !== false ) {
218
- self . _clear ( ) ;
217
+ if ( that . _trigger ( "stop" , event ) !== false ) {
218
+ that . _clear ( ) ;
219
219
}
220
220
} ) ;
221
221
} else {
@@ -558,7 +558,7 @@ $.ui.plugin.add("draggable", "connectToSortable", {
558
558
} ,
559
559
drag : function ( event , ui ) {
560
560
561
- var inst = $ ( this ) . data ( "draggable" ) , self = this ;
561
+ var inst = $ ( this ) . data ( "draggable" ) , that = this ;
562
562
563
563
var checkPos = function ( o ) {
564
564
var dyClick = this . offset . click . top , dxClick = this . offset . click . left ;
@@ -585,7 +585,7 @@ $.ui.plugin.add("draggable", "connectToSortable", {
585
585
//Now we fake the start of dragging for the sortable instance,
586
586
//by cloning the list group item, appending it to the sortable and using it as inst.currentItem
587
587
//We can then fire the start event of the sortable with our passed browser event, and our own helper (so it doesn't create a new one)
588
- this . instance . currentItem = $ ( self ) . clone ( ) . removeAttr ( 'id' ) . appendTo ( this . instance . element ) . data ( "sortable-item" , true ) ;
588
+ this . instance . currentItem = $ ( that ) . clone ( ) . removeAttr ( 'id' ) . appendTo ( this . instance . element ) . data ( "sortable-item" , true ) ;
589
589
this . instance . options . _helper = this . instance . options . helper ; //Store helper option to later restore it
590
590
this . instance . options . helper = function ( ) { return ui . helper [ 0 ] ; } ;
591
591
0 commit comments