aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/unit/sortable/sortable_defaults.js1
-rw-r--r--tests/unit/sortable/sortable_options.js8
-rw-r--r--ui/ui.sortable.js11
3 files changed, 2 insertions, 18 deletions
diff --git a/tests/unit/sortable/sortable_defaults.js b/tests/unit/sortable/sortable_defaults.js
index fd7c723d2..7681addad 100644
--- a/tests/unit/sortable/sortable_defaults.js
+++ b/tests/unit/sortable/sortable_defaults.js
@@ -3,7 +3,6 @@
*/
var sortable_defaults = {
- accurateIntersection: true,
appendTo: "parent",
axis: false,
cancel: ":input,option",
diff --git a/tests/unit/sortable/sortable_options.js b/tests/unit/sortable/sortable_options.js
index 80e7fa3f2..507d5dcfa 100644
--- a/tests/unit/sortable/sortable_options.js
+++ b/tests/unit/sortable/sortable_options.js
@@ -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.");
});
diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js
index 91560c74e..23710b4a9 100644
--- a/ui/ui.sortable.js
+++ b/ui/ui.sortable.js
@@ -574,14 +574,8 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
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 @@ $.extend($.ui.sortable, {
version: "@VERSION",
eventPrefix: "sort",
defaults: {
- accurateIntersection: true,
appendTo: "parent",
axis: false,
cancel: ":input,option",