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

Fix class merging and attribute precedence #56

Merged
merged 7 commits into from
Jan 31, 2019

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Jan 31, 2019

This fixes #25.

In addition to special-casing the "class" attribute, this also fixes attribute precedence when an attribute is placed before vs after ...attributes.

I eliminated the use of references whose value contains more references. I found it hard to reason about when composing across arbitrarily many levels. Now all the references represent true usermode values, and we use PathReference get for peeling individual references off of hashes.

Edit to add: forgot to mention, but now this polyfill is "more correct" than Ember until emberjs/ember.js#17533 is fixed.

@rwjblue rwjblue merged commit f7771dc into ember-polyfills:master Jan 31, 2019
@ef4 ef4 deleted the better-merging branch January 31, 2019 19:19
@rwjblue rwjblue added the bug Something isn't working label Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants