We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b42125a commit 0cc1a0cCopy full SHA for 0cc1a0c
ui/jquery.ui.position.js
@@ -37,8 +37,7 @@ $.fn.position = function( options ) {
37
targetWidth = target.width();
38
targetHeight = target.height();
39
basePosition = { top: 0, left: 0 };
40
- // TODO: use $.isWindow() in 1.9
41
- } else if ( targetElem.setTimeout ) {
+ } else if ( $.isWindow( targetElem ) ) {
42
43
44
basePosition = { top: target.scrollTop(), left: target.scrollLeft() };
0 commit comments