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