On Tue, Jul 19, 2011 at 3:44 AM, RobG <[email protected]> wrote:

>
> Not really worth the effort. __proto__ is deprecated and shouldn't be
> used for anything:
> <URL:
> https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/proto
> >


I guess people will stop using it when there is a replacement that fills the
niche.
Currently, this is the only way to change the prototype of existing objects
(which is probably rarely the right thing to do), and the only way to make a
custom prototype chain on, e.g., Date or Array objects (Object.create
doesn't do that), which can be useful.

/L

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to