Thanks, that clears things up. I appreciate the help.... On Thu, Sep 10, 2009 at 12:20 PM, johnjbarton <[email protected]>wrote:
> > > > On Sep 10, 6:49 am, Geo Corsar <[email protected]> wrote: > > Why are some function names in the watch window shown in red? I've > > only recently seen this, most of the time the function names are in > > green. It seems that this indicates some sort of error but I can't > > find any explanation in any documentation or on the web. > > Firebug marks functions red if it thinks they are "user classes", eg > they are likely to appear in statements like > var aFoo = new Foo(); > The exact meaning is that these functions have properties set on their > prototype. So the canonical way to create a reusable object in > javascript is: > > function Foo() {} > Foo.prototype.bar = function theFooBar() { ... } > var aFoo = new Foo(); > > Firebug things this construct deserves your attention and marks these > functions in red. > > jjb > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
