I there any particular reason hasOwnProperty is not in JavaScriptObject?
 
It is used throughout GWT and from what I have seen the following would be 
the best implementation:

  public native boolean hasOwnProperty(String key) /*-{
    // In Firefox, jsObject.hasOwnProperty(key) requires a primitive string
    key = String(key);
    return (this.hasOwnProperty(key)) ? true : false;
  }-*/;

Some of the calls, in GWT, cast the key to a string and some don't.  Seems 
like a standard implementation that is used would be a better plan.
 
Thanks,
Pat

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to