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

[BUGFIX release] Fix attributeBindings for id attribute. #11889

Merged
merged 1 commit into from
Jul 25, 2015

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Jul 24, 2015

In prior versions of Ember you could customize id via
attributeBindings like so:

export default Ember.Component.extend({
  attributeBindings: [ 'someThing:id' ]
  someThing: 'asdfasdfasdf'
});

However, that was broken during the glimmer refactorings because we
process attributeBindings before the defaults (meaning the default
elementId is used whenever id isn't passed in the template).

This fix is to process the default first, then process attributeBindings.

Fixes #11871

In prior versions of Ember you could customize `id` via
`attributeBindings` like so:

```javascript
export default Ember.Component.extend({
  attributeBindings: [ 'someThing:id' ]
  someThing: 'asdfasdfasdf'
});
```

However, that was broken during the glimmer refactorings because we
process `attributeBindings` *before* the defaults (meaning the default
`elementId` is used whenever `id` isn't passed in the template).

This fix is to process the default first, then process `attributeBindings`.
@stefanpenner
Copy link
Member

LVGTM

rwjblue added a commit that referenced this pull request Jul 25, 2015
[BUGFIX release] Fix `attributeBindings` for `id` attribute.
@rwjblue rwjblue merged commit 7348ea1 into emberjs:master Jul 25, 2015
@stefanpenner stefanpenner deleted the attributeBindings-for-id branch July 25, 2015 03:16
@Serabe
Copy link
Member

Serabe commented Jul 27, 2015

Will this be backported to 1.13?

@rwjblue
Copy link
Member Author

rwjblue commented Jul 27, 2015

@Serabe - Yes, it has already been backported into the stable branch.

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.

attributesBindings does not set id in 1.13
3 participants