Skip to content
Permalink
Browse files

Sortable: Removed accurateIntersection option (Fixes #4225).

  • Loading branch information...
scottgonzalez committed Feb 25, 2009
1 parent 94c62b2 commit 47cdc542e8be3a397ae596d603b90926e158f7b1
Showing with 2 additions and 18 deletions.
  1. +0 −1 tests/unit/sortable/sortable_defaults.js
  2. +0 −8 tests/unit/sortable/sortable_options.js
  3. +2 −9 ui/ui.sortable.js
@@ -3,7 +3,6 @@
*/

var sortable_defaults = {
accurateIntersection: true,
appendTo: "parent",
axis: false,
cancel: ":input,option",
@@ -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.");
});
@@ -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",

0 comments on commit 47cdc54

Please sign in to comment.
You can’t perform that action at this time.