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

View attribute fixes #10957

Merged
merged 4 commits into from
Apr 26, 2015
Merged

Conversation

mitchlloyd
Copy link
Contributor

Work on remaining classNameBindings and attributeBindings failures.

It seems that this test was passing in spirit: the number of observers
does not increase when rerendering.
Interestingly, spaces are allowed when setting classNameBindings on a
view inside of a template.

{{view classNameBindings="prop:true:false anotherProp:more-true:more-false"}}

However, they are not allowed when setting the property on a view class:

Ember.View.create({
  classNameBindings: 'prop:true:false anotherProp:more-true:more-false'
});

To handle both of these cases, we split the incoming classNameBindings
property by spaces when using the view keyword.
@mitchlloyd mitchlloyd changed the title [WIP] View attribute fixes View attribute fixes Apr 26, 2015
mixonic added a commit that referenced this pull request Apr 26, 2015
@mixonic mixonic merged commit d739bd0 into emberjs:idempotent-rerender Apr 26, 2015
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.

2 participants