We can solve this in Firefox 4.0, Firebug 1.8 with
getOwnPropertyNames().

jjb

On Oct 24, 5:09 pm, John J Barton <[email protected]> wrote:
> I've asked for help on mozilla.dev.platform.
> jjb
>
> On Oct 24, 10:49 am, Nicolas Hatier <[email protected]> wrote:
>
> > Ok. Having the default methods for, example, the Date object would
> > probably make my work easier as I always have to go check the
> > documentation - I work in 4-5 programming languages weekly, each of them
> > having a Date object with slightly different behavior and accessors.
>
> > NH
>
> > On 2010-10-24 13:14, Donny Viszneki wrote:
>
> > > 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