__proto__, when will it be gone? Alternatives?

banksriyadh

New Member
Mozilla claimed it would remove __proto__ a while back (~2008) and it is still in the browser. Is it still going to be deprecated? It works in Opera, (Safari I think) and Chrome as well. I don't need to worry about IE so I would love to keep using it. However, I don't want my code to stop working one day, so on to my question:__proto__ allows for dead simple inheritance:\[code\]a.__proto__ = {'a':'test'}\[/code\]Is there anyway I can replicate this in a standards compliant way? I know there is functional inheritance, that's ugly, and it over-complicates the fact that I just want to create a prototype chain. Just wondering if any wizards have solved this. Thanks
 
Top