From b0be87f663e8684c1369e1bff740c1750ba17080 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 13 Jan 2011 07:55:31 -0800 Subject: fix for angular.Object.equals to handle equals({},null) --- src/Angular.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/Angular.js b/src/Angular.js index 00e1d2a2..762291ef 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -631,6 +631,7 @@ function copy(source, destination){ */ function equals(o1, o2) { if (o1 == o2) return true; + if (o1 === null || o2 === null) return false; var t1 = typeof o1, t2 = typeof o2, length, key, keySet; if (t1 == t2 && t1 == 'object') { if (o1 instanceof Array) { -- cgit v1.2.3