diff options
| author | Igor Minar | 2011-08-14 01:41:49 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-08-15 00:21:02 -0700 |
| commit | 035ad727267877cb1be58dacb24ddf97cc7b5512 (patch) | |
| tree | e3bd7c90b56abbd34dbc298daf0d629b0225709b /src | |
| parent | 9d808239b3120b0120f164834ce3012f779c8939 (diff) | |
| download | angular.js-035ad727267877cb1be58dacb24ddf97cc7b5512.tar.bz2 | |
refactor(json): use angularString instead of angular.String
Diffstat (limited to 'src')
| -rw-r--r-- | src/JSON.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/JSON.js b/src/JSON.js index 02c1a613..34bcfd51 100644 --- a/src/JSON.js +++ b/src/JSON.js @@ -87,7 +87,7 @@ function toJsonArray(buf, obj, pretty, stack) { if (obj === null) { buf.push($null); } else if (obj instanceof RegExp) { - buf.push(angular.String.quoteUnicode(obj.toString())); + buf.push(angularString.quoteUnicode(obj.toString())); } else if (isFunction(obj)) { return; } else if (isBoolean(obj)) { @@ -99,7 +99,7 @@ function toJsonArray(buf, obj, pretty, stack) { buf.push('' + obj); } } else if (isString(obj)) { - return buf.push(angular.String.quoteUnicode(obj)); + return buf.push(angularString.quoteUnicode(obj)); } else if (isObject(obj)) { if (isArray(obj)) { buf.push("["); @@ -120,7 +120,7 @@ function toJsonArray(buf, obj, pretty, stack) { // TODO(misko): maybe in dev mode have a better error reporting? buf.push('DOM_ELEMENT'); } else if (isDate(obj)) { - buf.push(angular.String.quoteUnicode(angular.Date.toString(obj))); + buf.push(angularString.quoteUnicode(angular.Date.toString(obj))); } else { buf.push("{"); if (pretty) buf.push(pretty); @@ -141,7 +141,7 @@ function toJsonArray(buf, obj, pretty, stack) { buf.push(","); if (pretty) buf.push(pretty); } - buf.push(angular.String.quote(key)); + buf.push(angularString.quote(key)); buf.push(":"); toJsonArray(buf, value, childPretty, stack); comma = true; |
