diff options
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() };
|