On 22 juil, 20:28, mike <[email protected]> wrote:
> Cool, thanks again for the help. I am confused by the last paragraph
> but I think it's because you're looking at the code at the first URL
> rather than the second one:
>
> http://code.google.com/webtoolkit/tutorials/1.6/Xsite.html
>
> The code at that URL uses 'window' instead of $wnd. So I think this
> does pollute the window namespace. No?
...if you use the "std" linker (IFrameLinker), which loads the GWT
code within an IFrame (hence a different 'window' object).
The 'xs' linker loads the code within the HTML host page context
(within a closure to avoid polluting the window namespace), so $wnd ==
window, so whichever variable you use, you'll pollute the window
namespace of the HTML host page.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---