From fd618d042f0a7145e51e785ac02337d821d0b2c4 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Sun, 23 Aug 2009 17:40:44 +0000 Subject: [PATCH] draggable, sortable: include originalPosition in ui hash, implements #3782 --- ui/ui.draggable.js | 1 + ui/ui.sortable.js | 1 + 2 files changed, 2 insertions(+) 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 -- 2.39.5