aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.draggable.js
diff options
context:
space:
mode:
authorTJ VanToll <tj.vantoll@gmail.com>2013-02-12 21:27:21 -0500
committerTJ VanToll <tj.vantoll@gmail.com>2013-02-12 21:27:21 -0500
commit3d39d8c32f7b4777c8272fbdd9d24d54ca00dffc (patch)
treedcd8803a7e3a1f7480585bf0184d3f7f88a45ab4 /ui/jquery.ui.draggable.js
parentc32bebd1bd28d158b017bb1dd7f95fb1d8a8d567 (diff)
downloadjquery-ui-3d39d8c32f7b4777c8272fbdd9d24d54ca00dffc.tar.gz
jquery-ui-3d39d8c32f7b4777c8272fbdd9d24d54ca00dffc.zip
Removing unnecessary wrapping of this in draggable's stack option handling.
Diffstat (limited to 'ui/jquery.ui.draggable.js')
-rw-r--r--ui/jquery.ui.draggable.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js
index b8d21bd80..8b388d166 100644
--- a/ui/jquery.ui.draggable.js
+++ b/ui/jquery.ui.draggable.js
@@ -908,9 +908,8 @@ $.ui.plugin.add("draggable", "snap", {
$.ui.plugin.add("draggable", "stack", {
start: function() {
-
var min,
- o = $(this).data("ui-draggable").options,
+ o = this.data("ui-draggable").options,
group = $.makeArray($(o.stack)).sort(function(a,b) {
return (parseInt($(a).css("zIndex"),10) || 0) - (parseInt($(b).css("zIndex"),10) || 0);
});
@@ -921,8 +920,7 @@ $.ui.plugin.add("draggable", "stack", {
$(group).each(function(i) {
$(this).css("zIndex", min + i);
});
-
- $(this[0]).css("zIndex", (min + group.length));
+ this.css("zIndex", (min + group.length));
}
});