sortable: all events of the inner nodes of the sortable item were unbound after the sort (this is related to remove() in jQuery, bugfix is not to use remove()), fixes #3488

This commit is contained in:
Paul Bakaus 2008-11-03 13:23:15 +00:00
parent 9be9c9f699
commit 0e16fcf1e8

View File

@ -791,7 +791,9 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
this._propagate("beforeStop", e, null, noPropagation); this._propagate("beforeStop", e, null, noPropagation);
this.placeholder.remove(); //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node!
this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
if(this.options.helper != "original") this.helper.remove(); this.helper = null; if(this.options.helper != "original") this.helper.remove(); this.helper = null;
this._propagate("stop", e, null, noPropagation); this._propagate("stop", e, null, noPropagation);