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
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
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
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
4 matches
Mail list logo