Re: class properties inheritance

2014-12-29 Thread Claude Pache
Le 28 déc. 2014 à 23:14, Frankie Bagnardi f.bagna...@gmail.com a écrit : That's why you call super(); as the first line in the constructor. The true rule is not: call super() in the first line in the constructor; it is: don't reference `this` before calling the super constructor. —Claude

Re: class properties inheritance

2014-12-29 Thread Claude Pache
Le 28 déc. 2014 à 22:42, Антон Шувалов an...@shuvalov.info a écrit : Hi, guys! I'm confused with class properties. With prototype chains I can setup kinda default values which being replaced by values from children. But replacing become hard to work with classes. For example, we have

class properties inheritance

2014-12-28 Thread Антон Шувалов
Hi, guys! I'm confused with class properties. With prototype chains I can setup kinda default values which being replaced by values from children. But replacing become hard to work with classes. For example, we have simple module, some backbone view: ```js class BaseView extends Backbone.View

Re: class properties inheritance

2014-12-28 Thread Frankie Bagnardi
That's why you call super(); as the first line in the constructor. On Sun, Dec 28, 2014 at 2:42 PM, Антон Шувалов an...@shuvalov.info wrote: Hi, guys! I'm confused with class properties. With prototype chains I can setup kinda default values which being replaced by values from children. But