Sortable: Removed accurateIntersection option (Fixes #4225).

This commit is contained in:
Scott González 2009-02-25 04:15:48 +00:00
parent 94c62b2ab0
commit 47cdc542e8
3 changed files with 2 additions and 18 deletions

View File

@ -3,7 +3,6 @@
*/ */
var sortable_defaults = { var sortable_defaults = {
accurateIntersection: true,
appendTo: "parent", appendTo: "parent",
axis: false, axis: false,
cancel: ":input,option", cancel: ":input,option",

View File

@ -5,14 +5,6 @@
module("sortable: options"); 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() { test("{ appendTo: 'parent' }, default", function() {
ok(false, "missing test - untested code is broken code."); ok(false, "missing test - untested code is broken code.");
}); });

View File

@ -574,14 +574,8 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
var t = this.options.toleranceElement ? $(this.options.toleranceElement, item.item) : item.item; var t = this.options.toleranceElement ? $(this.options.toleranceElement, item.item) : item.item;
if (!fast) { if (!fast) {
if (this.options.accurateIntersection) { item.width = t.outerWidth();
item.width = t.outerWidth(); item.height = t.outerHeight();
item.height = t.outerHeight();
}
else {
item.width = t[0].offsetWidth;
item.height = t[0].offsetHeight;
}
} }
var p = t.offset(); var p = t.offset();
@ -994,7 +988,6 @@ $.extend($.ui.sortable, {
version: "@VERSION", version: "@VERSION",
eventPrefix: "sort", eventPrefix: "sort",
defaults: { defaults: {
accurateIntersection: true,
appendTo: "parent", appendTo: "parent",
axis: false, axis: false,
cancel: ":input,option", cancel: ":input,option",