aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.draggable.js
diff options
context:
space:
mode:
authorMarwan Al Jubeh <marwan.aljubeh@gmail.com>2011-10-17 19:14:54 +0300
committerMarwan Al Jubeh <marwan.aljubeh@gmail.com>2011-10-17 19:14:54 +0300
commitc3c84002898163c3c6625a4fedcddf1434f8e448 (patch)
tree1b5084265af39eab210f5f23260396b7731fbdfb /ui/jquery.ui.draggable.js
parentbdd602e21bde0fee9879cc3b5d708c1ab86fb3fc (diff)
downloadjquery-ui-c3c84002898163c3c6625a4fedcddf1434f8e448.tar.gz
jquery-ui-c3c84002898163c3c6625a4fedcddf1434f8e448.zip
Core, Draggable: Fixed #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))) {