diff options
-rw-r--r-- | tests/unit/draggable/draggable_options.js | 4 | ||||
-rw-r--r-- | ui/ui.draggable.js | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/unit/draggable/draggable_options.js b/tests/unit/draggable/draggable_options.js index 9fc4f4de2..4162d0388 100644 --- a/tests/unit/draggable/draggable_options.js +++ b/tests/unit/draggable/draggable_options.js @@ -250,7 +250,7 @@ test("{ cursorAt: { left: -5, top: -5 } }", function() { $("#draggable2").draggable({ cursorAt: { left: cax, top: cay }, drag: function(event, ui) { - actual = ui.absolutePosition; + actual = ui.offset; } }); var el = $("#draggable2").data("draggable").element; @@ -274,7 +274,7 @@ test("{ cursorAt: { left: -5, top: -5 } }", function() { $("#draggable1").draggable({ cursorAt: { left: cax, top: cay }, drag: function(event, ui) { - actual = ui.absolutePosition; + actual = ui.offset; } }); var el = $("#draggable2").data("draggable").element; diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js index 6057cdfbd..f877bd14a 100644 --- a/ui/ui.draggable.js +++ b/ui/ui.draggable.js @@ -394,7 +394,6 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, { return { helper: this.helper, position: this.position, - absolutePosition: this.positionAbs, //deprecated offset: this.positionAbs }; } |