Skip to content

[BUGFIX] Remove vestigial path normalization in chains#12929

Merged
rwjblue merged 3 commits intomasterfrom
rm-global-chains
Feb 9, 2016
Merged

[BUGFIX] Remove vestigial path normalization in chains#12929
rwjblue merged 3 commits intomasterfrom
rm-global-chains

Conversation

@mmun
Copy link
Member

@mmun mmun commented Feb 8, 2016

This fixes a bug that occurs when chaining through a property that starts with a capital letter.

Here is a JSBin with a demonstration of the bug.

Copy link
Member

Choose a reason for hiding this comment

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

Can you please make an entry in the deprecation guide and add a url property here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's discuss whether we want to deprecate all of Ember.Binding first. I think we should.

Copy link
Member Author

Choose a reason for hiding this comment

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

On that note I am going to remove the deprecation from this particular PR.

@mmun mmun force-pushed the rm-global-chains branch from 73b6aa5 to 59fa972 Compare February 8, 2016 08:30
@mmun mmun changed the title Deprecate global bindings and rewrite them to avoid global chains [BUGFIX] Remove vestigial path normalization in chains Feb 8, 2016
@mmun
Copy link
Member Author

mmun commented Feb 8, 2016

Kris pointed out a couple other things that should be cleaned up before merging:

And we should do some performance testing to see how much of a win it is.

@stefanpenner
Copy link
Member

🔥 🎉

mmun added 2 commits February 8, 2016 21:25
Removes support for paths containing globals and "this". These were
intended to be removed at the time when globals support was removeded
from Ember.get/set and from inside of temlates, e.g.

```hbs
{{SomeGlobal.foo}}
```
@mmun mmun force-pushed the rm-global-chains branch from 59fa972 to 419fc72 Compare February 9, 2016 03:45
@rwjblue
Copy link
Member

rwjblue commented Feb 9, 2016

Thanks @mmun!

rwjblue added a commit that referenced this pull request Feb 9, 2016
[BUGFIX] Remove vestigial path normalization in chains
@rwjblue rwjblue merged commit 632a254 into master Feb 9, 2016
@rwjblue rwjblue deleted the rm-global-chains branch February 9, 2016 17:37
@@ -219,20 +232,20 @@ Binding.prototype = {

/* Called when the from side changes. */
fromDidChange(target) {
Copy link
Member

Choose a reason for hiding this comment

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

this arg doesn't seem one used anymore?

@krisselden
Copy link
Contributor

This should be documented as breaking but since the behavior made no sense and didn't align with templates I doubt this will bite anyone

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