Skip to content
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

Use parent class when call this.__base in constructor #9

Closed
ikokostya opened this issue Mar 5, 2014 · 1 comment
Closed

Use parent class when call this.__base in constructor #9

ikokostya opened this issue Mar 5, 2014 · 1 comment

Comments

@ikokostya
Copy link

function A() {}

var B = inherit(A, {
  __constructor: function () {
    this.__base(); // equal to call A.call(this);
  }
});
dfilatov added a commit that referenced this issue Mar 5, 2014
Add ability to call __base in __constructor in case of inheritance from plane function
@dfilatov
Copy link
Owner

dfilatov commented Mar 5, 2014

It has been working since 2.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants