]> source.dussan.org Git - jquery-ui.git/commitdiff
draggable, sortable: include originalPosition in ui hash, implements #3782
authorPaul Bakaus <paul.bakaus@googlemail.com>
Sun, 23 Aug 2009 17:40:44 +0000 (17:40 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Sun, 23 Aug 2009 17:40:44 +0000 (17:40 +0000)
ui/ui.draggable.js
ui/ui.sortable.js

index df555e68642192485db1fc9daada2ab6f61b4dd4..b5e37502be0bc865ba4561700f5a0e683ce72293 100644 (file)
@@ -412,6 +412,7 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
                return {
                        helper: this.helper,
                        position: this.position,
+                       originalPosition: this.originalPosition,
                        offset: this.positionAbs
                };
        }
index 2fd86bc022d87619a1cf17c015a008887fedb0f6..0347f86b965f7af270738c1d68e2053c8de0cb4d 100644 (file)
@@ -1009,6 +1009,7 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
                        helper: self.helper,
                        placeholder: self.placeholder || $([]),
                        position: self.position,
+                       originalPosition: originalPosition,
                        offset: self.positionAbs,
                        item: self.currentItem,
                        sender: inst ? inst.element : null