mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Removing unnecessary wrapping of this in draggable's stack option handling.
This commit is contained in:
parent
c32bebd1bd
commit
3d39d8c32f
6
ui/jquery.ui.draggable.js
vendored
6
ui/jquery.ui.draggable.js
vendored
@ -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));
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user