Le 07/03/2012 14:53, Russell Leggett a écrit : > On Wed, Mar 7, 2012 at 2:58 AM, David Bruant <[email protected] > <mailto:[email protected]>> wrote: > > > Besides this, I don't see a restriction on why you couldn't just use > functions each time you need an object. > > > The biggest restriction would probably just be forcing the way you > have to create it. It has to start life as a function and get modified > from there. True. This restriction applies to every object "form". For instance, arrays have to start their lives as array as well (with the special "length" and numeric properties relationship). Same goes for DOM nodes. It's not possible for a regular object to get the internal magics of a NodeList.
David
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

