Skip to content

Commit

Permalink
Sortable: Removed sortIndicator option. Fixed #4118 - option sortIndi…
Browse files Browse the repository at this point in the history
…cator is undocumented.
  • Loading branch information
scottgonzalez committed Feb 13, 2009
1 parent a5d5c4f commit 9f93e8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion tests/unit/sortable/sortable_defaults.js
Expand Up @@ -28,7 +28,6 @@ var sortable_defaults = {
scrollSensitivity: 20,
scrollSpeed: 20,
scope: "default",
sortIndicator: "???",
tolerance: "intersect",
zIndex: 1000
};
Expand Down
5 changes: 2 additions & 3 deletions ui/ui.sortable.js
Expand Up @@ -261,7 +261,7 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
this.direction = intersection == 1 ? "down" : "up";

if (this.options.tolerance == "pointer" || this._intersectsWithSides(item)) {
this.options.sortIndicator.call(this, event, item);
this._rearrange(event, item);
} else {
break;
}
Expand Down Expand Up @@ -667,7 +667,7 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
continue;

this.currentContainer = this.containers[i];
itemWithLeastDistance ? this.options.sortIndicator.call(this, event, itemWithLeastDistance, null, true) : this.options.sortIndicator.call(this, event, null, this.containers[i].element, true);
itemWithLeastDistance ? this._rearrange(event, itemWithLeastDistance, null, true) : this._rearrange(event, null, this.containers[i].element, true);
this._trigger("change", event, this._uiHash());
this.containers[i]._trigger("change", event, this._uiHash(this));

Expand Down Expand Up @@ -1018,7 +1018,6 @@ $.extend($.ui.sortable, {
scrollSensitivity: 20,
scrollSpeed: 20,
scope: "default",
sortIndicator: $.ui.sortable.prototype._rearrange,
tolerance: "intersect",
zIndex: 1000
}
Expand Down

0 comments on commit 9f93e8d

Please sign in to comment.