angular/angular.js — Issue #657: $watch should consider two NaNs to be equal
Author: IgorMinar
Created: 2011-11-15 19:53:07+00:00
State: open

recently in feedback we got into a situation where an infinite digest was caused by a watch that returned an object with NaN values. we should be smart enough to consider two NaNs to be equal.

Test case: http://jsfiddle.net/IgorMinar/CHVbb/184/