Revision: 9473
Author: [email protected]
Date: Tue Dec 21 05:40:19 2010
Log: Fix use of length() in generated JS code.

Patch by: jat
Review by: unnurg

http://code.google.com/p/google-web-toolkit/source/detail?r=9473

Modified:
/trunk/user/src/com/google/gwt/i18n/linker/LocalePropertyProviderGenerator.java

=======================================
--- /trunk/user/src/com/google/gwt/i18n/linker/LocalePropertyProviderGenerator.java Mon Dec 20 11:48:24 2010 +++ /trunk/user/src/com/google/gwt/i18n/linker/LocalePropertyProviderGenerator.java Tue Dec 21 05:40:19 2010
@@ -192,7 +192,7 @@
     body.println("var end = cookies.indexOf(';', idx);");
     body.println("if (end < 0) {");
     body.indent();
-    body.println("end = cookies.length();");
+    body.println("end = cookies.length;");
     body.outdent();
     body.println("}");
body.println("locale = cookies.substring(idx + " + (cookieName.length() + 1)
@@ -257,7 +257,7 @@
     body.println("var end = queryParam.indexOf(\"&\", qpStart);");
     body.println("if (end < 0) {");
     body.indent();
-    body.println("end = queryParam.length();");
+    body.println("end = queryParam.length;");
     body.outdent();
     body.println("}");
     body.println("locale = queryParam.substring(qpStart + "

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to