W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2011

Re: Non-constructible constructors and Arrays

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Thu, 28 Jul 2011 20:44:17 -0700
Message-ID: <CABZUbM0V3ipR0rnb-zF5fQsAZoBY7RgFPVe72JB8wqJv7Fn44Q@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: Allen Wirfs-Brock <allen@wirfs-brock.com>, Alex Russell <slightlyoff@google.com>, public-script-coord@w3.org, Brendan Eich <brendan@mozilla.com>, Cameron McCormack <cam@mcc.id.au>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:04 UTC