Nice one!
On Nov 7, 2012, at 18:27 , Kevin Smith <[email protected]> wrote:
>
> Any other reasons for why they are discouraged?
>
> This footgun:
>
> function MyClass() {
>
> this.value = 1; // OK
> this.list.push(0); // Modifying the list for every instance - probably
> not intended.
> }
>
> MyClass.prototype.value = 0;
> MyClass.prototype.list = [];
>
> - Kevin
--
Dr. Axel Rauschmayer
[email protected]
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss