]> source.dussan.org Git - jquery-ui.git/commitdiff
sortable: update callback wass not called everytime (fixes #3028)
authorPaul Bakaus <paul.bakaus@googlemail.com>
Thu, 26 Jun 2008 12:43:45 +0000 (12:43 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Thu, 26 Jun 2008 12:43:45 +0000 (12:43 +0000)
ui/ui.sortable.js

index d172a51ddcbaeab4afef2738d3dcb09f41388d9e..17ee712811d06ce3f0aa687645fd414eeb83dde7 100644 (file)
@@ -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--){