aboutsummaryrefslogtreecommitdiffstats
path: root/src/JSON.js
diff options
context:
space:
mode:
authorMisko Hevery2011-11-03 13:53:37 -0700
committerMisko Hevery2011-11-14 16:39:33 -0800
commit7c11531902986405e9443c30dd0c654f86c31ca3 (patch)
treeb81c6ecdd2f4c6fc71b16ecd26044690f13228da /src/JSON.js
parentc6d2549a5255822290853aae8d922848b81bed62 (diff)
downloadangular.js-7c11531902986405e9443c30dd0c654f86c31ca3.tar.bz2
refactor(parser): turn parser into a service (keep compatibility hack)
Diffstat (limited to 'src/JSON.js')
-rw-r--r--src/JSON.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/JSON.js b/src/JSON.js
index d0ded009..51a12860 100644
--- a/src/JSON.js
+++ b/src/JSON.js
@@ -41,7 +41,7 @@ function fromJson(json, useNative) {
if (useNative && window.JSON && window.JSON.parse) {
obj = JSON.parse(json);
} else {
- obj = parser(json, true).primary()();
+ obj = parseJson(json, true)();
}
return transformDates(obj);
} catch (e) {