Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix($compile): make '='-bindings NaN-aware #8554

Closed
wants to merge 1 commit into from

Conversation

caitp
Copy link
Contributor

@caitp caitp commented Aug 10, 2014

Update parent and child scopes correctly when a '='-binding changes from a NaN
value.

Closes #8553

Update parent and child scopes correctly when a '='-binding changes from a NaN value.
@caitp
Copy link
Contributor Author

caitp commented Aug 10, 2014

I'm just going to check this in because it's a really trivial change, and the fact that this isn't working currently can cause problems for certain weird use-cases involving ngModel, and is just generally bonkers.

Will want review later, can revert or update it if any changes are asked for

@caitp caitp closed this in 5038bf7 Aug 10, 2014
caitp added a commit to caitp/angular.js that referenced this pull request Aug 10, 2014
Update parent and child scopes correctly when a '='-binding changes from a NaN value.

TBR by angular-core

Closes angular#8553
Closes angular#8554

Conflicts:
	test/ng/compileSpec.js
caitp added a commit that referenced this pull request Aug 10, 2014
Update parent and child scopes correctly when a '='-binding changes from a NaN value.

TBR by angular-core

Closes #8553
Closes #8554

Conflicts:
	test/ng/compileSpec.js
@IgorMinar
Copy link
Contributor

lgtm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Two-way binding doesn't work if initial value is NaN
3 participants