Re: Does a private variable in Java stays private when compiled to javascript?
On 16 juin, 17:23, Shedokan <shedok...@gmail.com> wrote:
> Hello,
> I am looking at GWT's features and can't figure out weather a variable
> declared in java as private will stay private once compiled in GWT.
> By private I mean unaccessible to anyone except for the constructor or
> the construtors functions.
I suppose with the "standard" linker some script could access the
iframe's script and mess things up (as everything is on the "global
scope").
With the "xs" linker though, the whole script is made "private" using
the module pattern ((function() { /* the script here */ })();)
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home