diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-12-24 02:35:19 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-12-24 02:35:19 +0000 |
commit | 1d9c22a652ac24037ec12a040bf5fe823b489c4b (patch) | |
tree | b62059d0c30d9a50fb379ddbbe23b9b3fa249660 /ui/jquery.ui.position.js | |
parent | 50cbf9f60ee97dc716355c343eaf69846dd404c6 (diff) | |
download | jquery-ui-1d9c22a652ac24037ec12a040bf5fe823b489c4b.tar.gz jquery-ui-1d9c22a652ac24037ec12a040bf5fe823b489c4b.zip |
Position: Fixed window detection.
Diffstat (limited to 'ui/jquery.ui.position.js')
-rw-r--r-- | ui/jquery.ui.position.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index 0b7563b10..e28295aa5 100644 --- a/ui/jquery.ui.position.js +++ b/ui/jquery.ui.position.js @@ -33,7 +33,7 @@ $.fn.position = function(options) { targetWidth = target.width();
targetHeight = target.height();
basePosition = { top: 0, left: 0 };
- } else if ('scrollTo' in options.of && options.of.document) {
+ } else if (options.of.scrollTo && options.of.document) {
targetWidth = target.width();
targetHeight = target.height();
basePosition = { top: target.scrollTop(), left: target.scrollLeft() };
|