public class AbstractHtmlComponent … {public class HtmlComponent {/*** @j2sNative this.css(propertyName, value); return this;*/public native HtmlComponent css(String propertyName, String value);…}}
Clazz.defineMethod (c$, "css",function (a, b) {this.css(propertyName, value); return this;}, "~S,~S");
Clazz.defineMethod (c$, "css",function (propertyName, value) {this.css(propertyName, value); return this;}, "~S,~S");
--
You received this message because you are subscribed to the Google Groups "Java2Script" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java2script...@googlegroups.com.
To post to this group, send email to java2...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/java2script/57e8e143-ef98-454b-b2ff-61d1087e58c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
j2s.compiler.mode=debug
j2s.compiler.whitespace=false
j2s.compiler.linebreak=\r\n
You may get a smaller file in release mode. But it will be hard to read/debug those scripts later. Modern HTTP servers always serve *.js files in g-zip encoding, which result in a much smaller files. So release mode is not a must, in my opinion.
To view this discussion on the web visit https://groups.google.com/d/msgid/java2script/bf47f9d4-1076-448f-996d-439cdf539aa6%40googlegroups.com.