-
-
Notifications
You must be signed in to change notification settings - Fork 928
ES2015 classes cannot be used with Mithril #735
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
Comments
Same thing with Chrome in strict mode +
|
Duplicate of #618 ? |
No. Consider this blocking that bug. This is limited to merely ES6 classes On Mon, Jul 27, 2015, 14:04 Richard Eames [email protected] wrote:
|
Clarification: the "component" property. On Mon, Jul 27, 2015, 17:16 Isiah Meadows [email protected] wrote:
|
s/component/controller/g... var component = {
controller: class { /* ... */ },
view(ctrl) { /* ... */ },
} On Mon, Jul 27, 2015, 17:31 Isiah Meadows [email protected] wrote:
|
var component = {
controller: class { /* ... */ },
view(ctrl) { /* ... */ },
} That does work.. at least in chrome 43: https://jsfiddle.net/wv5jfoyh/ And if you mean not working with |
reading again, this does look like a dupe of #618 to me, so I'm closing this |
Basically, this line will throw in any ES2015 class implemented with correct semantics. The problem is that you can only
.bind
classes; you can't.apply
orcall
them with anything. In io.js 2.4.0, which does implement correct semantics (Babel can't due to ES5 restrictions):The text was updated successfully, but these errors were encountered: