Skip to content

Commit 0cc1a0c

Browse files
committed
Position: Use $.isWindow()
1 parent b42125a commit 0cc1a0c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ui/jquery.ui.position.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ $.fn.position = function( options ) {
3737
targetWidth = target.width();
3838
targetHeight = target.height();
3939
basePosition = { top: 0, left: 0 };
40-
// TODO: use $.isWindow() in 1.9
41-
} else if ( targetElem.setTimeout ) {
40+
} else if ( $.isWindow( targetElem ) ) {
4241
targetWidth = target.width();
4342
targetHeight = target.height();
4443
basePosition = { top: target.scrollTop(), left: target.scrollLeft() };

0 commit comments

Comments
 (0)