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

[CLEANUP beta] Remove bind-attr #11587

Merged
merged 1 commit into from
Jul 8, 2015
Merged

[CLEANUP beta] Remove bind-attr #11587

merged 1 commit into from
Jul 8, 2015

Conversation

mmun
Copy link
Member

@mmun mmun commented Jun 29, 2015

No description provided.

@mmun
Copy link
Member Author

mmun commented Jun 29, 2015

We should extract this to an addon before merging. Anyone want to volunteer?

@mmun
Copy link
Member Author

mmun commented Jun 29, 2015

@jasonmit has begun working on the addon: https://github.com/jasonmit/legacy-bind-attr.

@rwjblue
Copy link
Member

rwjblue commented Jun 29, 2015

I left a few issues in that repo with some suggestions.

@@ -101,7 +101,7 @@ QUnit.test('should update bound helpers in a subexpression when properties chang
ignoreDeprecation(function() {
view = EmberView.create({
controller: { prop: 'isThing' },
template: compile('<div {{bind-attr data-foo=(dasherize prop)}}>{{prop}}</div>')
Copy link
Member

Choose a reason for hiding this comment

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

This test is should update bound helpers in a subexpression when properties change, however here it has been changed to use an attribute expression and not a subexpression.

Can change this to still use a nested helper? It is specifically testing the subexpression hook.

Copy link
Member

Choose a reason for hiding this comment

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

@mmun - ping

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 is a nested helper: (concat (dasherize prop)).

Copy link
Member Author

Choose a reason for hiding this comment

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

I can make it more nested so that it's future-proof.

Copy link
Member

Choose a reason for hiding this comment

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

@mmun I'm considering that putting a mustache in element space results in different hooks being called than putting it in the attr value. With helpers those differences were a constant pain, and I'm presuming this test is specifically for testing a binding in element space.

@mixonic
Copy link
Member

mixonic commented Jun 29, 2015

This is awesome :-D :-D :-D IMO an addon was not required before dropping it (we only committed to addons for view and controller stuff) but it is great to have. 👍

@rwjblue
Copy link
Member

rwjblue commented Jun 29, 2015

Agreed on the addon, but its presence seems good until @code0100fun and @abuiles get a way to auto rewrite templates for us 😃

@jasonmit
Copy link
Member

Closed out the two issues and all tests are passing against this branch. I'm ready to transfer ownership of the repository. Thanks

@rwjblue
Copy link
Member

rwjblue commented Jul 1, 2015

@mmun - This needs a few small touchup items before this can be merged...

@mmun mmun force-pushed the remove-bind-attr branch from 172002f to 642f5c3 Compare July 8, 2015 05:57
stefanpenner added a commit that referenced this pull request Jul 8, 2015
@stefanpenner stefanpenner merged commit 6b1068a into master Jul 8, 2015
@mmun mmun deleted the remove-bind-attr branch July 8, 2015 18: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.

5 participants