[jQuery] Re: $.map flattens results

2008-06-11 Thread Michael Geary
Marc, if you want a map function that works the way you expect, use the standard JavaScript one. Here's an implementation from the Gecko reference that provides a map function for JavaScript engines that don't have it built in: if( ! Array.prototype.map ) { Array.prototype.map = function( fu

[jQuery] Re: $.map flattens results

2008-06-11 Thread Ariel Flesler
$.map is used a lot internally for everything. By the selectors module, the manipulation/traversing methods, etc. This was the desired functionality in order to simplify its internal duties. -- Ariel Flesler http://flesler.blogspot.com On 11 jun, 07:19, Marc Galera <[EMAIL PROTECTED]> wrote: > H