On Oct 29, 10:53 pm, Yel <[email protected]> wrote: > On Oct 30, 12:44 pm, John J Barton <[email protected]> > wrote: > > > I guess I don't understand. Just use for-in loop over "window" > > properties? > > You must have something else in mind. > > jjb > > Yeah, for-in loop over "window" does work in Firefox, although I > cannot make sure > if firebug really works in this way.
Firebug's dom.js (the code that supports the Watch side panel) applies getMembers() to what ever object is the current selection for the panel. The default selection is this.context.getGlobalScope() and tabContext.js shows us that the global scope for a context in Firebug is "this.window", another words the window object for the current Firebug context. (Chromebug supports non-window scopes). And getMembers uses for-in loop to get the properties of its current selected object. 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.
