diff options
| author | Misko Hevery | 2011-11-03 13:53:37 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2011-11-14 16:39:33 -0800 | 
| commit | 7c11531902986405e9443c30dd0c654f86c31ca3 (patch) | |
| tree | b81c6ecdd2f4c6fc71b16ecd26044690f13228da /src/JSON.js | |
| parent | c6d2549a5255822290853aae8d922848b81bed62 (diff) | |
| download | angular.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.js | 2 | 
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) { | 
