Skip to content

Commit eab0a6d

Browse files
committed
Position: Use a better check for determining if an object is a window. Fixes #6201 - Autocomplete: Broken menu in IE8 Standards Mode when including prototype framework.
1 parent c74f538 commit eab0a6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/jquery.ui.position.js

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

0 commit comments

Comments
 (0)