diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-06-24 11:47:42 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-06-24 11:47:42 +0000 |
commit | a002680ba96639f0a6c959f25048c3ebac043a10 (patch) | |
tree | 4022e28c633aeaea0adbe0019fa31944cd014758 /tests | |
parent | dd584fbe9527c88e6adb40653224143abb6b4961 (diff) | |
download | jquery-ui-a002680ba96639f0a6c959f25048c3ebac043a10.tar.gz jquery-ui-a002680ba96639f0a6c959f25048c3ebac043a10.zip |
sortable:fixed #3019, stop being fird too early
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sortable.js | 12 |
1 files changed, 12 insertions, 0 deletions
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);
|