Hi!
I really want too understand why i need to use this.parent() in my initialize methods.
What the real function of this method?
CODE
initialize: function() {
this.parent();
},
Regards,
Rafael bueno
Hi Rafael,
this.parent() allows you access to the parent class' initialize method.
In fact, no methods are overwritten. Instead, calling this.parent() inside any method allows you access to its parent class' same-named method.
Use initView() instead. You don't need to call this.parent() inside of it.
- Ben