diff options
| author | Misko Hevery | 2011-03-24 15:23:13 -0700 |
|---|---|---|
| committer | Misko Hevery | 2011-06-08 13:49:11 -0700 |
| commit | f57536ddb693f4d610952ed34bad2650f5b1b75c (patch) | |
| tree | ea4f6b5325df104c734c7001d1ef18d9c71ea2af /src/JSON.js | |
| parent | 73e3f4c10c5aaefc8d8f3792fec7d1c2e2326359 (diff) | |
| download | angular.js-f57536ddb693f4d610952ed34bad2650f5b1b75c.tar.bz2 | |
cleanup old closure directives
Diffstat (limited to 'src/JSON.js')
| -rw-r--r-- | src/JSON.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/JSON.js b/src/JSON.js index 5e13dc45..3d329aa5 100644 --- a/src/JSON.js +++ b/src/JSON.js @@ -66,8 +66,8 @@ function fromJson(json, useNative) { } } -angular['toJson'] = toJson; -angular['fromJson'] = fromJson; +angular.toJson = toJson; +angular.fromJson = fromJson; function toJsonArray(buf, obj, pretty, stack) { if (isObject(obj)) { @@ -90,7 +90,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(angular.String.quoteUnicode(obj.toString())); } else if (isFunction(obj)) { return; } else if (isBoolean(obj)) { @@ -102,7 +102,7 @@ function toJsonArray(buf, obj, pretty, stack) { buf.push('' + obj); } } else if (isString(obj)) { - return buf.push(angular['String']['quoteUnicode'](obj)); + return buf.push(angular.String.quoteUnicode(obj)); } else if (isObject(obj)) { if (isArray(obj)) { buf.push("["); @@ -120,7 +120,7 @@ function toJsonArray(buf, obj, pretty, stack) { } buf.push("]"); } else if (isDate(obj)) { - buf.push(angular['String']['quoteUnicode'](angular['Date']['toString'](obj))); + buf.push(angular.String.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(angular.String.quote(key)); buf.push(":"); toJsonArray(buf, value, childPretty, stack); comma = true; |
