Re: Non-constructible constructors and Arrays

On 7/28/11, Garrett Smith <dhtmlkitchen@gmail.com> wrote:

[...]
> var kids = ul.children;
Correction kids = arraySlice(ul.children);

> arraySort(kids, byLastName);
> ul.replaceChildNodes(kids);
>
> Or for the one line wonderers:
> ul.replaceChildNodes(arraySort(ul.children, byLastName));
>
Correction:
ul.replaceChildNodes(arraySort(arraySlice(ul.children), byLastName));
-- 
Garrett

Received on Friday, 29 July 2011 03:44:52 UTC