From a002680ba96639f0a6c959f25048c3ebac043a10 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Tue, 24 Jun 2008 11:47:42 +0000 Subject: sortable:fixed #3019, stop being fird too early --- tests/sortable.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests') diff --git a/tests/sortable.js b/tests/sortable.js index 95fd9cbfd..c9da3b729 100644 --- a/tests/sortable.js +++ b/tests/sortable.js @@ -122,5 +122,17 @@ test("defaults", function() { }); +test("#3019: Stop fires too early", function() { + + var helper = null; + el = $("#sortable").sortable({ stop: function(e, ui) { + helper = ui.helper; + }}); + + sort($("li", el)[0], 0, 40, 2, 'Dragging the sortable'); + equals(helper, null, "helper should be false"); + +}); + })(jQuery); -- cgit v1.2.3