Skip to content

Add descriptor()#442

Closed
pzuraq wants to merge 3 commits intoemberjs:masterfrom
pzuraq:classic-class-descriptor
Closed

Add descriptor()#442
pzuraq wants to merge 3 commits intoemberjs:masterfrom
pzuraq:classic-class-descriptor

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