r3536 committed - Position: Fixed window detection.

r3536 committed - Position: Fixed window detection.

Revision: 3536
Author: scott.gonzalez
Date: Wed Dec 23 18:35:19 2009
Log: Position: Fixed window detection.
http://code.google.com/p/jquery-ui/source/detail?r=3536
Modified:
/trunk/ui/jquery.ui.position.js
=======================================
--- /trunk/ui/jquery.ui.position.js    Thu Nov 19 08:37:05 2009
+++ /trunk/ui/jquery.ui.position.js    Wed Dec 23 18:35:19 2009
@@ -33,7 +33,7 @@
        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() };
--