From ffa84418862a9f768ce5b9b681916438f14a0d79 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 23 Feb 2012 13:57:28 -0800 Subject: bug(equals): incorect comparison of dates --- src/Angular.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/Angular.js b/src/Angular.js index 65610869..87c10e23 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -671,6 +671,8 @@ function equals(o1, o2) { } return true; } + } else if (isDate(o1)) { + return isDate(o2) && o1.getTime() == o2.getTime(); } else { if (isScope(o1) || isScope(o2) || isWindow(o1) || isWindow(o2)) return false; keySet = {}; -- cgit v1.2.3