-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify parent method call #8
Comments
Thanks Alban! the _"this.parent.setAddress.call(_this, 'France', city, street);" syntax See more in the section "Extend a class" of http://jiem.github.io/my-class/ Cheers On Thu Jan 22 2015 at 8:06:33 AM Alban [email protected] wrote:
|
Yes actually I know that, I had some days headache about that, trying Even it is not handy for the moment yours is the best method for On Thu, Jan 22, 2015 at 5:39 PM, Jie Meng-Gérard [email protected]
|
Hi
Actually this is the simple and best performance class definition in javascript. I have analised it and compared with other javascript libs.
Now in my opitionion the best would be to simplyfy parent method access from child. For example: if now it is Child.Super.prototype.setAddress.call(this);
make something like this:
this.parent.setAddress.call(this, 'France', city, street);
I will try to do that.
The text was updated successfully, but these errors were encountered: