diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-04-20 10:12:14 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-04-20 10:12:14 -0400 |
commit | 22b7f9a8196e0927bd993edd2ca3d1b1ef7bd79d (patch) | |
tree | 281b6c571d545ad4509239bdf8fcc8cc28784f2a /ui/jquery.ui.position.js | |
parent | a9f1ffb4fd9b6953318e262b056c3a534a83e462 (diff) | |
download | jquery-ui-22b7f9a8196e0927bd993edd2ca3d1b1ef7bd79d.tar.gz jquery-ui-22b7f9a8196e0927bd993edd2ca3d1b1ef7bd79d.zip |
Position: Use targetElem for events to maintain consistency.
Diffstat (limited to 'ui/jquery.ui.position.js')
-rw-r--r-- | ui/jquery.ui.position.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index 31920c161..bba4dd4e6 100644 --- a/ui/jquery.ui.position.js +++ b/ui/jquery.ui.position.js @@ -109,7 +109,7 @@ $.fn.position = function( options ) { // force left top to allow flipping options.at = "left top"; targetWidth = targetHeight = 0; - targetOffset = { top: options.of.pageY, left: options.of.pageX }; + targetOffset = { top: targetElem.pageY, left: targetElem.pageX }; } else { targetWidth = target.outerWidth(); targetHeight = target.outerHeight(); |