aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.sortable.js
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-06-26 12:43:45 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-06-26 12:43:45 +0000
commite8b545382ee8b13fa1a23a54ee0f61645377b32a (patch)
treecb06277133fc75313c3d3a67049f8c6cc190a3e9 /ui/ui.sortable.js
parentf7dc618ede64d9890a736d0bb235926bfd2fd8f2 (diff)
downloadjquery-ui-e8b545382ee8b13fa1a23a54ee0f61645377b32a.tar.gz
jquery-ui-e8b545382ee8b13fa1a23a54ee0f61645377b32a.zip
sortable: update callback wass not called everytime (fixes #3028)
Diffstat (limited to 'ui/ui.sortable.js')
-rw-r--r--ui/ui.sortable.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js
index d172a51dd..17ee71281 100644
--- a/ui/ui.sortable.js
+++ b/ui/ui.sortable.js
@@ -578,7 +578,7 @@ $.widget("ui.sortable", $.extend($.ui.mouse, {
},
clear: function(e, noPropagation) {
- if(this.domPosition[0] != this.currentItem.prev().not(".ui-sortable-helper")[0] || this.domPosition[1] != this.currentItem.parent()[0]) this.propagate("update", e, null, noPropagation); //Trigger update callback if the DOM position has changed
+ if(this.domPosition.prev != this.currentItem.prev().not(".ui-sortable-helper")[0] || this.domPosition.parent != this.currentItem.parent()[0]) this.propagate("update", e, null, noPropagation); //Trigger update callback if the DOM position has changed
if(!contains(this.element[0], this.currentItem[0])) { //Node was moved out of the current element
this.propagate("remove", e, null, noPropagation);
for (var i = this.containers.length - 1; i >= 0; i--){