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

Add descriptor() #442

Closed
wants to merge 3 commits into from
Closed

Conversation

pzuraq
Copy link
Contributor

@pzuraq pzuraq commented Feb 7, 2019

@rwjblue rwjblue added the T-framework RFCs that impact the ember.js library label Feb 14, 2019
@rwjblue rwjblue self-assigned this Feb 14, 2019
@pzuraq pzuraq changed the title Tracked Property Classic Class Descriptor Add descriptor() Feb 20, 2019
All examples including tracked properties in the guides which have a classic
class equivalent will use `descriptor` instead of native getters, demonstrating
how it works by example.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is already in the guides, yes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is in the Octane branch, yes. We can remove it if this RFC is not accepted though.

@pzuraq
Copy link
Contributor Author

pzuraq commented Mar 27, 2019

We were able to make actual native getters work in EmberObject.extend:

EmberObject.extend({
  get foo() {}
});

So this feature isn't necessary anymore.

@pzuraq pzuraq closed this Mar 27, 2019
@pzuraq pzuraq deleted the classic-class-descriptor branch March 27, 2019 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-framework RFCs that impact the ember.js library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants