Found in GWT Release 2.3
Encountered on Windows 7 : Chrome
The code for getPropertyInt and getPropertyDouble in the Element class is...
public final native int getPropertyInt(String name) /*-{
return parseInt(this[name]) || 0;
}-*/;
public final native double getPropertyDouble(String name) /*-{
return parseFloat(this[name]) || 0.0;
}-*/;
The result is that code can not determine if the value is truly zero, or if
the property does not exist.
A method... isProperty(String name) ... would help to see if the property
exists, but there isn't one.
Perhaps the methods should throw an exception?
Workaround if you have one: Don't use zero as a value.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/eBadgbqaY-IJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.