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

Refactor Descriptor #14138

Closed
wants to merge 1 commit into from
Closed

Refactor Descriptor #14138

wants to merge 1 commit into from

Conversation

chancancode
Copy link
Member

  • Duck-type on isDescriptor === true instead of using instanceof
  • Require all descriptors to have setup and teardown
  • Refactored most descriptors to use ES6 classes except CP descriptors because it’s a big file and I ran out of time for it

cc @rwjblue @krisselden @stefanpenner

}

if (desc instanceof Descriptor) {
value = desc;
if (desc === null || desc === undefined) {
Copy link
Member Author

Choose a reason for hiding this comment

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

This branch was just moved up, mostly unchanged. The condition was previously if (desc == null) – note the double equal.

@stefanpenner
Copy link
Member

does ember correctly strip out the classCheck helper in babeliefed ES6 Modules?

@chadhietala
Copy link
Contributor

@stefanpenner it should.

@homu
Copy link
Contributor

homu commented Sep 20, 2016

☔ The latest upstream changes (presumably #14319) made this pull request unmergeable. Please resolve the merge conflicts.

* Duck-type on `isDescriptor === true` instead of using `instanceof`
* Require all descriptors to have `setup` and `teardown`
* Refactored most descriptors to use ES6 classes except CP descriptors
  because it’s a big file and I ran out of time for it
@pixelhandler
Copy link
Contributor

@chancancode just curious do any tests need to be added / changed for this refactor?

@homu
Copy link
Contributor

homu commented Dec 6, 2016

☔ The latest upstream changes (presumably #14681) made this pull request unmergeable. Please resolve the merge conflicts.

@locks locks closed this May 18, 2017
@locks locks deleted the refactor-descriptor branch July 18, 2017 08:28
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.

6 participants