Friday, December 27, 2013

Re: Differences between DevMode and Production mode related to trim()

GWT does not use the JS trim() method because of browser compatibility.

See bottom of file: https://gwt.googlesource.com/gwt/+/master/user/super/com/google/gwt/emul/java/lang/String.java

Maybe this implementation is not compatible with the contents of your String. In Java everything below \u0020 will be removed. Maybe thats not the case when using JavaScript "\s" RegExp.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment