in FF3, you should do -
unsafeWindow.google.gears.factory = unsafeWindow.GearsFactory();
in FF2, you want this line:
unsafeWindow.google.gears.factory = new unsafeWindow.GearsFactory();
Hope that helps,
Austin
On Oct 19, 7:28 pm, wu yuntao <[EMAIL PROTECTED]> wrote:
> My code is
> if (!unsafeWindow.google) unsafeWindow.google= {};
> if (!unsafeWindow.google.gears) {
> unsafeWindow.google.gears = { factory:
> unsafeWindow.GearsFactory() };
>
> }
>
> It works fine on firefox 3.0.*, but causes an exception on firefox
> 2.0.0.17: unsafeWindow.GearsFactory is not a function
>
> I've encountered the same problem when using the wiki offline script
> on firefox 2.0.0.17 too.
>
> Is there something wrong? I tried some other ways to initialize Gears,
> e.g. new GearsFactory(), but it crashes firefox