Skip to content

Commit d86ac02

Browse files
committed
Sortable: Style updates
Ref #14246 Ref gh-1588
1 parent 2626be4 commit d86ac02

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

tests/unit/sortable/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ common.testWidget( "sortable", {
3333
tolerance: "intersect",
3434
zIndex: 1000,
3535

36-
// callbacks
36+
// Callbacks
3737
activate: null,
3838
beforeStop: null,
3939
change: null,

tests/unit/sortable/events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test("start", function() {
2525
ok(hash.item, "UI hash includes: item");
2626
ok(!hash.sender, "UI hash does not include: sender");
2727

28-
// todo: see if these events should actually have sane values in them
28+
// Todo: see if these events should actually have sane values in them
2929
ok("position" in hash, "UI hash includes: position");
3030
ok("offset" in hash, "UI hash includes: offset");
3131
});

tests/unit/sortable/options.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,15 @@ test( "#8792: issues with floated items in connected lists", function() {
136136

137137
element = $( "#qunit-fixture li:eq(0)" );
138138

139-
// move the first li to the right of the second li in the first ul
139+
// Move the first li to the right of the second li in the first ul
140140
element.simulate( "drag", {
141141
dx: 55,
142142
moves: 15
143143
});
144144

145145
equal( changeCount, 1, "change fired only once (no jitters) when dragging a floated sortable in it's own container" );
146146

147-
// move the first li ( which is now in the second spot )
147+
// Move the first li ( which is now in the second spot )
148148
// through the first spot in the second ul to the second spot in the second ul
149149
element.simulate( "drag", {
150150
dx: 100,

ui/widgets/sortable.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ return $.widget("ui.sortable", $.ui.mouse, {
6262
tolerance: "intersect",
6363
zIndex: 1000,
6464

65-
// callbacks
65+
// Callbacks
6666
activate: null,
6767
beforeStop: null,
6868
change: null,
@@ -258,7 +258,7 @@ return $.widget("ui.sortable", $.ui.mouse, {
258258
if( o.cursor && o.cursor !== "auto" ) { // cursor option
259259
body = this.document.find( "body" );
260260

261-
// support: IE
261+
// Support: IE
262262
this.storedCursor = body.css( "cursor" );
263263
body.css( "cursor", o.cursor );
264264

@@ -400,7 +400,7 @@ return $.widget("ui.sortable", $.ui.mouse, {
400400
continue;
401401
}
402402

403-
// cannot intersect with itself
403+
// Cannot intersect with itself
404404
// no useless actions that have been done before
405405
// no action if the item moved is the parent of the item checked
406406
if (itemElement !== this.currentItem[0] &&
@@ -860,17 +860,17 @@ return $.widget("ui.sortable", $.ui.mouse, {
860860
innermostContainer = null,
861861
innermostIndex = null;
862862

863-
// get innermost container that intersects with item
863+
// Get innermost container that intersects with item
864864
for (i = this.containers.length - 1; i >= 0; i--) {
865865

866-
// never consider a container that's located within the item itself
866+
// Never consider a container that's located within the item itself
867867
if($.contains(this.currentItem[0], this.containers[i].element[0])) {
868868
continue;
869869
}
870870

871871
if(this._intersectsWith(this.containers[i].containerCache)) {
872872

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
874874
if(innermostContainer && $.contains(this.containers[i].element[0], innermostContainer.element[0])) {
875875
continue;
876876
}
@@ -888,12 +888,12 @@ return $.widget("ui.sortable", $.ui.mouse, {
888888

889889
}
890890

891-
// if no intersecting containers found, return
891+
// If no intersecting containers found, return
892892
if(!innermostContainer) {
893893
return;
894894
}
895895

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
897897
if(this.containers.length === 1) {
898898
if (!this.containers[innermostIndex].containerCache.over) {
899899
this.containers[innermostIndex]._trigger("over", event, this._uiHash(this));

0 commit comments

Comments
 (0)