]> source.dussan.org Git - jquery-ui.git/commitdiff
Sortable: Removed sortIndicator option. Fixed #4118 - option sortIndicator is undocu...
authorScott González <scott.gonzalez@gmail.com>
Fri, 13 Feb 2009 03:47:53 +0000 (03:47 +0000)
committerScott González <scott.gonzalez@gmail.com>
Fri, 13 Feb 2009 03:47:53 +0000 (03:47 +0000)
tests/unit/sortable/sortable_defaults.js
ui/ui.sortable.js

index 0a540c99b49d9ec864c272983433cdcfc92d8d96..fd7c723d29f0eaeb60de196438e6eed278d2f794 100644 (file)
@@ -28,7 +28,6 @@ var sortable_defaults = {
        scrollSensitivity: 20,
        scrollSpeed: 20,
        scope: "default",
-       sortIndicator: "???",
        tolerance: "intersect",
        zIndex: 1000
 };
index e3a3f3d3d73ac03faa9ccc62d8db314900a1f629..a781ea5316703a72d29a215d3f21ca08300e5795 100644 (file)
@@ -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;
                                }
@@ -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));
 
@@ -1018,7 +1018,6 @@ $.extend($.ui.sortable, {
                scrollSensitivity: 20,
                scrollSpeed: 20,
                scope: "default",
-               sortIndicator: $.ui.sortable.prototype._rearrange,
                tolerance: "intersect",
                zIndex: 1000
        }