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

fix($rootScope): ng-repeat can't handle NaN values. #4605 #6192

Closed
wants to merge 2 commits into from

Conversation

SekibOmazic
Copy link
Contributor

$watchCollection checks if oldValue !== newValue which does not work for NaN

Closes #4605

@mary-poppins
Copy link

I'm sorry, but I wasn't able to verify your Contributor License Agreement (CLA) signature. CLA signature is required for any code contributions to AngularJS.

Please sign our CLA and ensure that the CLA signature email address and the email address in this PR's commits match.

If you signed the CLA as a corporation, please let us know the company's name.

Thanks a bunch!

PS: If you signed the CLA in the past then most likely the email addresses don't match. Please sign the CLA again or update the email address in the commit of this PR.
PS2: If you are a Googler, please sign the CLA as well to simplify the CLA verification process.

@SekibOmazic
Copy link
Contributor Author

CLA signed again.
screen shot 2014-02-09 at 00 55 14

$watchCollection checks if oldValue !== newValue which does not work for NaN

Closes angular#4605
@mary-poppins
Copy link

CLA signature verified! Thank you!

Someone from the team will now triage your PR and it will be processed based on the determined priority (doc updates and fixes with tests are prioritized over other changes).

1 similar comment
@mary-poppins
Copy link

CLA signature verified! Thank you!

Someone from the team will now triage your PR and it will be processed based on the determined priority (doc updates and fixes with tests are prioritized over other changes).

@caitp
Copy link
Contributor

caitp commented Mar 4, 2014

Hey, so this is something we actually do a lot better in Angular.dart (and the upcoming Angular 2.0 dirty checking code), but I'm thinking we probably want to solve this in other watch algorithms than just watchCollection.

But even so, this fix doesn't look too bad for $watchCollection, so I think we can do this this week. I'll schedule this for 1.3

@caitp caitp added this to the 1.3.0-beta.1 milestone Mar 4, 2014
@caitp caitp self-assigned this Mar 4, 2014
@SekibOmazic
Copy link
Contributor Author

@caitp Thanks for your feedback. May I write you an email? I have a few questions regarding Angular 2.0 and AngularDart.

@caitp
Copy link
Contributor

caitp commented Mar 4, 2014

you can send an email, you may or may not get a helpful answer depending on the question

@jeffbcross
Copy link
Contributor

Merged fb6062f

@jeffbcross jeffbcross closed this Mar 19, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ng-repeat can't handle NaN values.
7 participants