The reason Google uses window.foobar instead of var foobar is because
the loader is contained inside of an anonymous function to facilitate
the centralizing of all Google libraries and, if you include
{nooldnames:1} in the load() calls, minimize DOM pollution. So when
they want to make something available in the global scope, they have
to explicitly attach it to the window object. Otherwise, it would be
confined to the scope of the anonymous function.
Jeremy R. Geerdes
Effective website design & development
Des Moines, IA
For more information or a project quote:
http://jgeerdes.home.mchsi.com
jgee...@mchsi.com
If you're in the Des Moines, IA, area, check out Debra Heights
Wesleyan Church!