r3106 committed - draggable: position and offset were undefined in start callback, fixes...
Revision: 3106
Author: paul.bakaus
Date: Sat Aug 22 01:10:19 2009
Log: draggable: position and offset were undefined in start callback, fixes
#4380
http://code.google.com/p/jquery-ui/source/detail?r=3106
Modified:
/trunk/ui/ui.draggable.js
=======================================
--- /trunk/ui/ui.draggable.js Sat Aug 22 00:59:09 2009
+++ /trunk/ui/ui.draggable.js Sat Aug 22 01:10:19 2009
@@ -83,7 +83,7 @@
this.scrollParent = this.helper.scrollParent();
//The element's absolute position on the page minus margins
- this.offset = this.element.offset();
+ this.offset = this.positionAbs = this.element.offset();
this.offset = {
top: this.offset.top - this.margins.top,
left: this.offset.left - this.margins.left
@@ -99,7 +99,7 @@
});
//Generate the original position
- this.originalPosition = this._generatePosition(event);
+ this.originalPosition = this.position = this._generatePosition(event);
this.originalPageX = event.pageX;
this.originalPageY = event.pageY;