diff --git a/tests/selectable.js b/tests/selectable.js index 0bbad8d48..df23626ca 100644 --- a/tests/selectable.js +++ b/tests/selectable.js @@ -165,18 +165,6 @@ test("enable", function() { el.selectable("destroy"); }); -test("toggle", function() { - expect(2); - - el = $("#selectable1").selectable({ disabled: true }).selectable("toggle"); - equals(el.data("disabled.selectable"), false, "disabled -> enabled"); - el.selectable("destroy"); - - el = $("#selectable1").selectable({ disabled: false }).selectable("toggle"); - equals(el.data("disabled.selectable"), true, "enabled -> disabled"); - el.selectable("destroy"); -}); - module("selectable: Callbacks"); test("start", function() { diff --git a/ui/ui.selectable.js b/ui/ui.selectable.js index 6c20692e8..2a2583c0c 100644 --- a/ui/ui.selectable.js +++ b/ui/ui.selectable.js @@ -246,14 +246,6 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, { this.helper.remove(); return false; - }, - - toggle: function() { - if(this.options.disabled){ - this.enable(); - } else { - this.disable(); - } } }));