I believe Firebug can only suggest completions that are enumerated
when one scans for an object's properties.

Using the C/C++ API ("JSAPI") properties can be set on an object which
are not enumerated using property enumeration.

(I do not believe Spidermonkey offers a Javascript API to the browser
for doing this, with perhaps the exception of the "__proto__" that is
still around.)

In either case, try this little experiment in Firebug:

window.Num<tab> (nothing happens/no suggestions)
window.Number<enter> (confirm the property exists)
window.Number = window.Number<enter> (set the property yourself)
window.Num<tab>ber (firebug makes the right suggestion!)

On Oct 24, 12:12 am, Nicolas Hatier <[email protected]> wrote:
> I notice the javascript objects (String, Date, etc) don't get
> completion, is there a way to get that?
>
> Example (on the command line):
>
>  > var d = new Date()<enter>
>  > d.get|
>
> Nothing happens. I would like to get something like:
>  > d.get|Day
>
> Regards
> Nicolas Hatier

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
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/firebug?hl=en.

Reply via email to