Skip to content

Conversation

nhunzaker
Copy link
Contributor

class MyPresenter extends Presenter {
    view = MyView
}

}

class MyPresenter extends Presenter {
view = MyView

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be global?

Copy link
Contributor Author

@nhunzaker nhunzaker Nov 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a new JavaScript feature. It transpiles to ES6 like this:

class MyPresenter extends Presenter {
    constructor() {
        super(...arguments)
        this.view = MyView
    }
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's like... RUBY 😍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've come so far.

@rysospicy
Copy link

Neat! 👍

@nhunzaker nhunzaker merged commit e6ff526 into master Nov 3, 2016
@coveralls
Copy link

Coverage Status

Coverage increased (+0.001%) to 99.789% when pulling e6ff526 on presenter-views into 15387f0 on master.

@nhunzaker nhunzaker deleted the presenter-views branch November 30, 2016 01:07
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

Successfully merging this pull request may close these issues.

3 participants