Revision: 7060
Author: rice+leg...@google.com
Date: Fri Nov 20 08:57:58 2009
Log: Simplify FF workaround for 'hasOwnProperty' String keys

Review by: scottb


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

Modified:
  /trunk/user/src/com/google/gwt/i18n/client/Dictionary.java
  /trunk/user/src/com/google/gwt/i18n/client/NumberFormat.java

=======================================
--- /trunk/user/src/com/google/gwt/i18n/client/Dictionary.java  Mon Nov 16  
08:32:42 2009
+++ /trunk/user/src/com/google/gwt/i18n/client/Dictionary.java  Fri Nov 20  
08:57:58 2009
@@ -143,6 +143,8 @@
     * @throws MissingResourceException if the value is not found
     */
    public native String get(String key) /*-{
+    // In Firefox, jsObject.hasOwnProperty(key) requires a primitive string
+    key = String(key);
      var map = th...@com.google.gwt.i18n.client.dictionary::dict;
      var value = map[key];
      var keys = th...@com.google.gwt.i18n.client.dictionary::accessedKeys;
=======================================
--- /trunk/user/src/com/google/gwt/i18n/client/NumberFormat.java        Wed Nov 
18  
13:48:28 2009
+++ /trunk/user/src/com/google/gwt/i18n/client/NumberFormat.java        Fri Nov 
20  
08:57:58 2009
@@ -117,7 +117,7 @@
   * </tr>
   *
   * <tr>
- * <td><code>E</code></td>
+ * <td><code>;</code></td>
   * <td>Number</td>
   * <td>Yes</td>
   * <td>Separates mantissa and exponent in scientific notation; need not be

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

Reply via email to