aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.draggable.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-11-17 07:31:03 -0800
committerScott González <scott.gonzalez@gmail.com>2011-11-17 07:31:03 -0800
commit69f6f585ae745af9d423151c7665b9f56f36d307 (patch)
tree8588fac1836d2085bebceea55400c38e898e5428 /ui/jquery.ui.draggable.js
parenta8a0b022cd6d21727900d335e534670165e7ddc2 (diff)
parentc3c84002898163c3c6625a4fedcddf1434f8e448 (diff)
downloadjquery-ui-69f6f585ae745af9d423151c7665b9f56f36d307.tar.gz
jquery-ui-69f6f585ae745af9d423151c7665b9f56f36d307.zip
Merge pull request #501 from maljub01/master
Fixed ticket #7800 - Draggable helper="clone" doesn't remove the dragged clone if original element is removed upon drop
Diffstat (limited to 'ui/jquery.ui.draggable.js')
-rw-r--r--ui/jquery.ui.draggable.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js
index 6475ebd61..92dd13c0d 100644
--- a/ui/jquery.ui.draggable.js
+++ b/ui/jquery.ui.draggable.js
@@ -208,7 +208,7 @@ $.widget("ui.draggable", $.ui.mouse, {
}
//if the original element is removed, don't bother to continue
- if(!this.element[0] || !this.element[0].parentNode)
+ if((!this.element[0] || !this.element[0].parentNode) && this.options.helper === "original")
return false;
if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {