diff options
author | Andrei Picus <office.nightcrawler@gmail.com> | 2014-01-14 09:36:16 +0200 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2014-01-15 04:10:10 -0500 |
commit | 23c7d367b12fd629754b680bbef84e564652e21a (patch) | |
tree | bc5f9daed6a063f66eb93a7a2134b39572d7a130 | |
parent | 0b28d597fe1857590c9719c8b41f00e77967f7d7 (diff) | |
download | jquery-ui-23c7d367b12fd629754b680bbef84e564652e21a.tar.gz jquery-ui-23c7d367b12fd629754b680bbef84e564652e21a.zip |
Sortable: Cleanup
Closes gh-1168
Closes gh-1169
-rw-r--r-- | tests/unit/sortable/sortable_events.js | 4 | ||||
-rw-r--r-- | ui/jquery.ui.sortable.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/sortable/sortable_events.js b/tests/unit/sortable/sortable_events.js index 46a493b3e..2d745ac20 100644 --- a/tests/unit/sortable/sortable_events.js +++ b/tests/unit/sortable/sortable_events.js @@ -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" ); }); diff --git a/ui/jquery.ui.sortable.js b/ui/jquery.ui.sortable.js index 4ba2576c1..29c25f390 100644 --- a/ui/jquery.ui.sortable.js +++ b/ui/jquery.ui.sortable.js @@ -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(); } } |