diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-08-21 00:05:15 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-08-21 08:06:22 -0400 |
commit | d86ac025ee021728bccecb04b1b16f965e7dcc9f (patch) | |
tree | f06b000ecf0f231150840d05bb16a246a463bcc0 /ui/widgets | |
parent | 2626be45337b8edb7be1958e4534db0ef435de56 (diff) | |
download | jquery-ui-d86ac025ee021728bccecb04b1b16f965e7dcc9f.tar.gz jquery-ui-d86ac025ee021728bccecb04b1b16f965e7dcc9f.zip |
Sortable: Style updates
Ref #14246
Ref gh-1588
Diffstat (limited to 'ui/widgets')
-rw-r--r-- | ui/widgets/sortable.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ui/widgets/sortable.js b/ui/widgets/sortable.js index 1d384a80e..bea58defd 100644 --- a/ui/widgets/sortable.js +++ b/ui/widgets/sortable.js @@ -62,7 +62,7 @@ return $.widget("ui.sortable", $.ui.mouse, { tolerance: "intersect", zIndex: 1000, - // callbacks + // Callbacks activate: null, beforeStop: null, change: null, @@ -258,7 +258,7 @@ return $.widget("ui.sortable", $.ui.mouse, { if( o.cursor && o.cursor !== "auto" ) { // cursor option body = this.document.find( "body" ); - // support: IE + // Support: IE this.storedCursor = body.css( "cursor" ); body.css( "cursor", o.cursor ); @@ -400,7 +400,7 @@ return $.widget("ui.sortable", $.ui.mouse, { continue; } - // cannot intersect with itself + // Cannot intersect with itself // no useless actions that have been done before // no action if the item moved is the parent of the item checked if (itemElement !== this.currentItem[0] && @@ -860,17 +860,17 @@ return $.widget("ui.sortable", $.ui.mouse, { innermostContainer = null, innermostIndex = null; - // get innermost container that intersects with item + // Get innermost container that intersects with item for (i = this.containers.length - 1; i >= 0; i--) { - // never consider a container that's located within the item itself + // Never consider a container that's located within the item itself if($.contains(this.currentItem[0], this.containers[i].element[0])) { continue; } if(this._intersectsWith(this.containers[i].containerCache)) { - // if we've already found a container and it's more "inner" than this, then continue + // If we've already found a container and it's more "inner" than this, then continue if(innermostContainer && $.contains(this.containers[i].element[0], innermostContainer.element[0])) { continue; } @@ -888,12 +888,12 @@ return $.widget("ui.sortable", $.ui.mouse, { } - // if no intersecting containers found, return + // If no intersecting containers found, return if(!innermostContainer) { return; } - // move the item into the container if it's not there already + // Move the item into the container if it's not there already if(this.containers.length === 1) { if (!this.containers[innermostIndex].containerCache.over) { this.containers[innermostIndex]._trigger("over", event, this._uiHash(this)); |