aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-07-09 03:22:57 +0000
committerScott González <scott.gonzalez@gmail.com>2009-07-09 03:22:57 +0000
commit292d9df1cec4d882961265dd2331b825e9549c4a (patch)
tree507b914a8b6828ad4e13f79daf5253e55ff51112
parentceb661f95959cda35b1445b6e71bb23fb8e95e40 (diff)
downloadjquery-ui-292d9df1cec4d882961265dd2331b825e9549c4a.tar.gz
jquery-ui-292d9df1cec4d882961265dd2331b825e9549c4a.zip
Draggable: Removed absolutePosition from ui hash. Fixes #3990 - Remove absolutePosition from ui hash.
-rw-r--r--tests/unit/draggable/draggable_options.js4
-rw-r--r--ui/ui.draggable.js1
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
};
}