From: Paul Bakaus Date: Sun, 23 Aug 2009 17:40:44 +0000 (+0000) Subject: draggable, sortable: include originalPosition in ui hash, implements #3782 X-Git-Tag: 1.8a2~128 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fd618d042f0a7145e51e785ac02337d821d0b2c4;p=jquery-ui.git draggable, sortable: include originalPosition in ui hash, implements #3782 --- diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js index df555e686..b5e37502b 100644 --- a/ui/ui.draggable.js +++ b/ui/ui.draggable.js @@ -412,6 +412,7 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, { return { helper: this.helper, position: this.position, + originalPosition: this.originalPosition, offset: this.positionAbs }; } diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js index 2fd86bc02..0347f86b9 100644 --- a/ui/ui.sortable.js +++ b/ui/ui.sortable.js @@ -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