aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-11-03 11:24:48 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-11-03 11:24:48 +0000
commit77d2c66690b7b622779e289d052fa73b4d56e7fc (patch)
tree0fa3d96ea19787e8a50c87f3e7499fb867e5772a /ui
parente560194aaa5d3a78b66a0611208a2a2f97380168 (diff)
downloadjquery-ui-77d2c66690b7b622779e289d052fa73b4d56e7fc.tar.gz
jquery-ui-77d2c66690b7b622779e289d052fa73b4d56e7fc.zip
draggable: fixed two missing defaults
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.draggable.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js
index c82dae461..3323f58ad 100644
--- a/ui/ui.draggable.js
+++ b/ui/ui.draggable.js
@@ -321,7 +321,7 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
},
_clear: function() {
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;
this.helper = null;
this.cancelHelperRemoval = false;
@@ -354,6 +354,7 @@ $.extend($.ui.draggable, {
defaults: {
appendTo: "parent",
axis: false,
+ handle: false,
cancel: ":input",
connectToSortable: false,
containment: false,
@@ -374,6 +375,7 @@ $.extend($.ui.draggable, {
snap: false,
snapMode: "both",
snapTolerance: 20,
+ stack: false,
cssNamespace: "ui"
}
});