Skip to content
Permalink
Browse files

Position: Use $.isWindow()

  • Loading branch information
scottgonzalez committed Dec 10, 2010
1 parent b42125a commit 0cc1a0c03085f783c24aaf30488a62eb136f3b5a
Showing with 1 addition and 2 deletions.
  1. +1 −2 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() };

0 comments on commit 0cc1a0c

Please sign in to comment.
You can’t perform that action at this time.