diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-12-10 14:34:21 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-12-10 14:34:21 -0500 |
commit | 0cc1a0c03085f783c24aaf30488a62eb136f3b5a (patch) | |
tree | 2a6c6195e40b66ae9953a3204ae68382d16e4615 /ui | |
parent | b42125af4350eda14a6b15bb71f8dd336858fbd8 (diff) | |
download | jquery-ui-0cc1a0c03085f783c24aaf30488a62eb136f3b5a.tar.gz jquery-ui-0cc1a0c03085f783c24aaf30488a62eb136f3b5a.zip |
Position: Use $.isWindow()
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.position.js | 3 |
1 files changed, 1 insertions, 2 deletions
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() }; |