@@ -62,7 +62,7 @@ return $.widget("ui.sortable", $.ui.mouse, {
62
62
tolerance : "intersect" ,
63
63
zIndex : 1000 ,
64
64
65
- // callbacks
65
+ // Callbacks
66
66
activate : null ,
67
67
beforeStop : null ,
68
68
change : null ,
@@ -258,7 +258,7 @@ return $.widget("ui.sortable", $.ui.mouse, {
258
258
if ( o . cursor && o . cursor !== "auto" ) { // cursor option
259
259
body = this . document . find ( "body" ) ;
260
260
261
- // support : IE
261
+ // Support : IE
262
262
this . storedCursor = body . css ( "cursor" ) ;
263
263
body . css ( "cursor" , o . cursor ) ;
264
264
@@ -400,7 +400,7 @@ return $.widget("ui.sortable", $.ui.mouse, {
400
400
continue ;
401
401
}
402
402
403
- // cannot intersect with itself
403
+ // Cannot intersect with itself
404
404
// no useless actions that have been done before
405
405
// no action if the item moved is the parent of the item checked
406
406
if ( itemElement !== this . currentItem [ 0 ] &&
@@ -860,17 +860,17 @@ return $.widget("ui.sortable", $.ui.mouse, {
860
860
innermostContainer = null ,
861
861
innermostIndex = null ;
862
862
863
- // get innermost container that intersects with item
863
+ // Get innermost container that intersects with item
864
864
for ( i = this . containers . length - 1 ; i >= 0 ; i -- ) {
865
865
866
- // never consider a container that's located within the item itself
866
+ // Never consider a container that's located within the item itself
867
867
if ( $ . contains ( this . currentItem [ 0 ] , this . containers [ i ] . element [ 0 ] ) ) {
868
868
continue ;
869
869
}
870
870
871
871
if ( this . _intersectsWith ( this . containers [ i ] . containerCache ) ) {
872
872
873
- // if we've already found a container and it's more "inner" than this, then continue
873
+ // If we've already found a container and it's more "inner" than this, then continue
874
874
if ( innermostContainer && $ . contains ( this . containers [ i ] . element [ 0 ] , innermostContainer . element [ 0 ] ) ) {
875
875
continue ;
876
876
}
@@ -888,12 +888,12 @@ return $.widget("ui.sortable", $.ui.mouse, {
888
888
889
889
}
890
890
891
- // if no intersecting containers found, return
891
+ // If no intersecting containers found, return
892
892
if ( ! innermostContainer ) {
893
893
return ;
894
894
}
895
895
896
- // move the item into the container if it's not there already
896
+ // Move the item into the container if it's not there already
897
897
if ( this . containers . length === 1 ) {
898
898
if ( ! this . containers [ innermostIndex ] . containerCache . over ) {
899
899
this . containers [ innermostIndex ] . _trigger ( "over" , event , this . _uiHash ( this ) ) ;
0 commit comments