From: Scott González Date: Fri, 10 Dec 2010 19:34:21 +0000 (-0500) Subject: Position: Use $.isWindow() X-Git-Tag: 1.9m4~109 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0cc1a0c03085f783c24aaf30488a62eb136f3b5a;p=jquery-ui.git Position: Use $.isWindow() --- diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index 9d490d274..3992e1c63 100644 --- a/ui/jquery.ui.position.js +++ b/ui/jquery.ui.position.js @@ -37,8 +37,7 @@ $.fn.position = function( options ) { targetWidth = target.width(); targetHeight = target.height(); basePosition = { top: 0, left: 0 }; - // TODO: use $.isWindow() in 1.9 - } else if ( targetElem.setTimeout ) { + } else if ( $.isWindow( targetElem ) ) { targetWidth = target.width(); targetHeight = target.height(); basePosition = { top: target.scrollTop(), left: target.scrollLeft() };