r2129 - in trunk: tests/unit/sortable ui

r2129 - in trunk: tests/unit/sortable ui


Author: scott.gonzalez
Date: Tue Feb 24 20:15:48 2009
New Revision: 2129
Modified:
trunk/tests/unit/sortable/sortable_defaults.js
trunk/tests/unit/sortable/sortable_options.js
trunk/ui/ui.sortable.js
Log:
Sortable: Removed accurateIntersection option (Fixes #4225).
Modified: trunk/tests/unit/sortable/sortable_defaults.js
==============================================================================
--- trunk/tests/unit/sortable/sortable_defaults.js    (original)
+++ trunk/tests/unit/sortable/sortable_defaults.js    Tue Feb 24 20:15:48 2009
@@ -3,7 +3,6 @@
*/
var sortable_defaults = {
-    accurateIntersection: true,
    appendTo: "parent",
    axis: false,
    cancel: ":input,option",
Modified: trunk/tests/unit/sortable/sortable_options.js
==============================================================================
--- trunk/tests/unit/sortable/sortable_options.js    (original)
+++ trunk/tests/unit/sortable/sortable_options.js    Tue Feb 24 20:15:48 2009
@@ -5,14 +5,6 @@
module("sortable: options");
-test("{ accurateIntersection: true }, default", function() {
-    ok(false, "missing test - untested code is broken code.");
-});
-
-test("{ accurateIntersection: false }", function() {
-    ok(false, "missing test - untested code is broken code.");
-});
-
test("{ appendTo: 'parent' }, default", function() {
    ok(false, "missing test - untested code is broken code.");
});
Modified: trunk/ui/ui.sortable.js
==============================================================================
--- trunk/ui/ui.sortable.js    (original)
+++ trunk/ui/ui.sortable.js    Tue Feb 24 20:15:48 2009
@@ -574,14 +574,8 @@
            var t = this.options.toleranceElement ?
$(this.options.toleranceElement, item.item) : item.item;
            if (!fast) {
-                if (this.options.accurateIntersection) {
-                    item.width = t.outerWidth();
-                    item.height = t.outerHeight();
-                }
-                else {
-                    item.width = t[0].offsetWidth;
-                    item.height = t[0].offsetHeight;
-                }
+                item.width = t.outerWidth();
+                item.height = t.outerHeight();
            }
            var p = t.offset();
@@ -994,7 +988,6 @@
    version: "@VERSION",
    eventPrefix: "sort",
    defaults: {
-        accurateIntersection: true,
        appendTo: "parent",
        axis: false,
        cancel: ":input,option",