From 7c11531902986405e9443c30dd0c654f86c31ca3 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 3 Nov 2011 13:53:37 -0700 Subject: refactor(parser): turn parser into a service (keep compatibility hack) --- src/JSON.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/JSON.js') 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) { -- cgit v1.2.3