From 22b7f9a8196e0927bd993edd2ca3d1b1ef7bd79d Mon Sep 17 00:00:00 2001 From: Scott González Date: Fri, 20 Apr 2012 10:12:14 -0400 Subject: Position: Use targetElem for events to maintain consistency. --- ui/jquery.ui.position.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3