I still suspect (having not experimented with it) that the "return this" aliasing will still confuse matters, at least without deliberate code in closure to handle it. At least with strings, it isn't smart enough:
appspot.com/home#code%3D%252F% 252F%2520%253D% 253DClosureCompiler%253D%253D% 250A%252F%252F%2520% 2540compilation_level% 2520ADVANCED_OPTIMIZATIONS% 250A%252F%252F%2520% 2540output_file_name% 2520default.js%250A%252F%252F% 2520%253D%253D% 252FClosureCompiler%253D%253D% 250A%250A%252F%252F%2520ADD% 2520YOUR%2520CODE%2520HERE% 250Afunction%2520A()%257Bthis. str%253D%27%27%257D%253B% 250AA.prototype.b%2520%253D% 2520function(string)%2520% 257Bthis.str%252B%253Dstring% 253B%2520return%2520this%253B% 257D%253B%250AA.prototype.c% 2520%253D%2520function()%2520% 257Breturn%2520this.str%257D% 253B%250A%250Aconsole.log(new% 2520A().b(%2522a%2522).b( window.prompt()).b(%2522b% 2522).c())%253B
I'm having a hard time modeling this in plain JS to get it to treat the constructor like an object, so as to correctly handle the "return this". Might be better as a @JsOverlay...
I should note I tried lots of different ways to try and get this working and came up with nothing. If you do figure it out - I would love to see what it looks like ;)
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.