File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ $.widget( "ui.draggable", {
41
41
this . element . css ( "position" , "relative" ) ;
42
42
}
43
43
44
+ this . element . addClass ( "ui-draggable" ) ;
44
45
this . _bind ( { mousedown : "_mouseDown" } ) ;
45
46
} ,
46
47
@@ -56,7 +57,7 @@ $.widget( "ui.draggable", {
56
57
57
58
// Take into account scrollbar
58
59
position . top -= scrollTop ;
59
- position . left -= scrollLeft
60
+ position . left -= scrollLeft ;
60
61
61
62
return position ;
62
63
}
@@ -258,7 +259,7 @@ $.widget( "ui.draggable", {
258
259
this . tempPosition = {
259
260
left : newLeft ,
260
261
top : newTop
261
- }
262
+ } ;
262
263
263
264
// Refresh offset cache with new positions
264
265
this . offset . left = this . startOffset . left + newLeft ;
@@ -297,6 +298,10 @@ $.widget( "ui.draggable", {
297
298
position : this . position ,
298
299
offset : this . offset
299
300
} ;
301
+ } ,
302
+
303
+ _destroy : function ( ) {
304
+ this . element . removeClass ( "ui-draggable" ) ;
300
305
}
301
306
} ) ;
302
307
You can’t perform that action at this time.
0 commit comments