On 03/28/2014 11:01 AM, Andrew Sutherland wrote:
The code should be fixed. It's my understanding that the existing idiom used throughout the Thunderbird tree is still okay to do since the prototype chain is created at object initialization time and so there's no actual mutation of the chain:function Application() { } Application.prototype = { __proto__: extApplication.prototype, }; Andrew
It sounds that what you want to do is some-kind of inheritance, can any of the solution documented on MDN can help you on this?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript#Inheritance Your issue is similar to the other one reported in B2G (Bug 984146) -- Nicolas B. Pierron _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

