From 10b18f7fe90a740bf134f44fa5c216742c52450e Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 19 Oct 2013 00:01:28 +0200 Subject: [PATCH] toJsonReplacer() patch to support Badgerfish Json format --- src/Angular.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Angular.js b/src/Angular.js index 305f132176e4..c1440a59a493 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -809,7 +809,7 @@ function bind(self, fn) { function toJsonReplacer(key, value) { var val = value; - if (typeof key === 'string' && key.charAt(0) === '$') { + if (typeof key === 'string' && key.length > 1 && key.charAt(0) === '$') { val = undefined; } else if (isWindow(value)) { val = '$WINDOW';