]> source.dussan.org Git - jquery-ui.git/commitdiff
Sortable: Cleanup
authorAndrei Picus <office.nightcrawler@gmail.com>
Tue, 14 Jan 2014 07:36:16 +0000 (09:36 +0200)
committerScott González <scott.gonzalez@gmail.com>
Wed, 15 Jan 2014 09:10:10 +0000 (04:10 -0500)
Closes gh-1168
Closes gh-1169

tests/unit/sortable/sortable_events.js
ui/jquery.ui.sortable.js

index 46a493b3e7d2156d51cc1f8aec6a82b5960d3745..2d745ac206c7f8e14f70742a0af342fcb6dac747 100644 (file)
@@ -249,12 +249,12 @@ test( "over", function() {
        });
 
        ok( hash, "stop event triggered" );
-       ok( hash.helper, "UI should not include: helper" );
+       ok( hash.helper, "UI includes: helper" );
        ok( hash.placeholder, "UI hash includes: placeholder" );
        ok( hash.position && ( "top" in hash.position && "left" in hash.position ), "UI hash includes: position" );
        ok( hash.offset && ( hash.offset.top && hash.offset.left ), "UI hash includes: offset" );
        ok( hash.item, "UI hash includes: item" );
-       ok( hash.sender, "UI hash does not include: sender" );
+       ok( hash.sender, "UI hash includes: sender" );
        equal( overCount, 1, "over fires only once" );
 });
 
index 4ba2576c1bc79136cc9354a74740a7ce65dadabb..29c25f390175caccb465a457d8aa7679a9851fa7 100644 (file)
@@ -733,7 +733,7 @@ $.widget("ui.sortable", $.ui.mouse, {
                                p = this.containers[i].element.offset();
                                this.containers[i].containerCache.left = p.left;
                                this.containers[i].containerCache.top = p.top;
-                               this.containers[i].containerCache.width = this.containers[i].element.outerWidth();
+                               this.containers[i].containerCache.width = this.containers[i].element.outerWidth();
                                this.containers[i].containerCache.height = this.containers[i].element.outerHeight();
                        }
                }