google-code-export / gwt-log

Automatically exported from code.google.com/p/gwt-log
1 stars 0 forks source link

How to use gwt-log from javaScript #81

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Like 62% of GWT users I use javaScript in my app. Consequently, I often need to 
use GWT libraries from javaScript. There might be a clean way to export third 
party GWT libraries in the future but for now I'm wandering what the easiest 
way to use this library from javaScript is and or what the easiest way might be 
in the future.

Original issue reported on code.google.com by JGleo...@gmail.com on 8 Feb 2015 at 12:26

GoogleCodeExporter commented 9 years ago
In GWT JSNI(http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html) 
it says to call a JSNI method that exports your code to javaScript. If you do 
it this way it wouldn't be exported by default so there would be no overhead 
for exporting it but if someone want to export it they can just call that 
method. I can create a patch to add this method if you want. I've never 
contributed to open source but I'm using gwt-log library and JSNI.

Original comment by JGleo...@gmail.com on 8 Feb 2015 at 12:39