mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
draggable: fixed two missing defaults
This commit is contained in:
parent
e560194aaa
commit
77d2c66690
@ -151,7 +151,7 @@ test("defaults", function() {
|
|||||||
disabled: false,
|
disabled: false,
|
||||||
distance: 1,
|
distance: 1,
|
||||||
grid: false,
|
grid: false,
|
||||||
handle: "??? - TODO",
|
handle: false,
|
||||||
helper: "original",
|
helper: "original",
|
||||||
iframeFix: false,
|
iframeFix: false,
|
||||||
opacity: 1.0,
|
opacity: 1.0,
|
||||||
@ -165,7 +165,7 @@ test("defaults", function() {
|
|||||||
snap: false,
|
snap: false,
|
||||||
snapMode: "both",
|
snapMode: "both",
|
||||||
snapTolerance: 20,
|
snapTolerance: 20,
|
||||||
stack: "??? - TODO",
|
stack: false,
|
||||||
zIndex: null
|
zIndex: null
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -321,7 +321,7 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
|
|||||||
},
|
},
|
||||||
_clear: function() {
|
_clear: function() {
|
||||||
this.helper.removeClass("ui-draggable-dragging");
|
this.helper.removeClass("ui-draggable-dragging");
|
||||||
if(this.options.helper != 'original' && !this.cancelHelperRemoval) this.helper.remove();
|
if(this.helper[0] != this.element[0] && !this.cancelHelperRemoval) this.helper.remove();
|
||||||
//if($.ui.ddmanager) $.ui.ddmanager.current = null;
|
//if($.ui.ddmanager) $.ui.ddmanager.current = null;
|
||||||
this.helper = null;
|
this.helper = null;
|
||||||
this.cancelHelperRemoval = false;
|
this.cancelHelperRemoval = false;
|
||||||
@ -354,6 +354,7 @@ $.extend($.ui.draggable, {
|
|||||||
defaults: {
|
defaults: {
|
||||||
appendTo: "parent",
|
appendTo: "parent",
|
||||||
axis: false,
|
axis: false,
|
||||||
|
handle: false,
|
||||||
cancel: ":input",
|
cancel: ":input",
|
||||||
connectToSortable: false,
|
connectToSortable: false,
|
||||||
containment: false,
|
containment: false,
|
||||||
@ -374,6 +375,7 @@ $.extend($.ui.draggable, {
|
|||||||
snap: false,
|
snap: false,
|
||||||
snapMode: "both",
|
snapMode: "both",
|
||||||
snapTolerance: 20,
|
snapTolerance: 20,
|
||||||
|
stack: false,
|
||||||
cssNamespace: "ui"
|
cssNamespace: "ui"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user