jQuery('div') is not an array. It has length but not splice. So
Firebug does not format it as an array.

In Javascript, the line between what is an array and what is not an
array is unclear.  After many versions the current test in Firebug
requires an array to have 'length' and 'splice'. Earlier versions of
Firebug only required 'length', but that caused some objects to be
formatted as arrays that did not have numerical indexes.

jjb

On Jan 1, 10:10 pm, Danny <[email protected]> wrote:
> Has anyone else using jQuery noticed that Firebug before 1.2 would
> treat console.log(jQuery('div')) as an array and list all the matched
> elements on the console, so you could mouse over the list and
> highlight the elements, or right-click and scroll into view etc., but
> now it just lists "Object length=13" and you need to click on that,
> then you get a vertical list that you need to scroll through. The old
> way was more helpful, I think.
>
> Workaround: console.log.apply(console, jQuery('div').get()) comes
> close to reproducing the old behavior.
>
> I'll crosspost this on the jQuery list.
--~--~---------~--~----~------------~-------~--~----~
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