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

Cannot call a class as a function #42

Open
tlenex opened this issue Oct 10, 2017 · 0 comments
Open

Cannot call a class as a function #42

tlenex opened this issue Oct 10, 2017 · 0 comments

Comments

@tlenex
Copy link

tlenex commented Oct 10, 2017

When i try to extend ES6 class (transpiled to ES5 with babel) as a parent class and I call MyJSFaceCLass.$super.call(this);

I get an error with pointing line to $super.call as mentioned above

Cannot call a class as a function

Was anyone able to migrate from jsface to ES6 successfully? As far as I can tell, I'll need to fork jsface to use new to construct parent object and then extend it, or find a non-standard babel transpiler for transforming classes into pure functions without checking new keyword generated object instance.

Btw. Is this project dead?

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

1 participant