diff options
| author | Misko Hevery | 2011-11-07 21:54:40 -0800 | 
|---|---|---|
| committer | Misko Hevery | 2011-11-14 20:31:14 -0800 | 
| commit | 7cb03c5ab9376c5ce5d689f2bf1c18dc141237a1 (patch) | |
| tree | 3016bc4834f3f09c3412c5dcb282df0cf7cefe10 /src/JSON.js | |
| parent | 78c7066422a9c800e7d527a4ed588a138a326551 (diff) | |
| download | angular.js-7cb03c5ab9376c5ce5d689f2bf1c18dc141237a1.tar.bz2 | |
chore(angular): clean up unused constants
Diffstat (limited to 'src/JSON.js')
| -rw-r--r-- | src/JSON.js | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/src/JSON.js b/src/JSON.js index 40bdf44f..db145879 100644 --- a/src/JSON.js +++ b/src/JSON.js @@ -134,7 +134,7 @@ function toJsonArray(buf, obj, pretty, stack) {      stack.push(obj);    }    if (obj === null) { -    buf.push($null); +    buf.push('null');    } else if (obj instanceof RegExp) {      buf.push(quoteUnicode(obj.toString()));    } else if (isFunction(obj)) { @@ -143,7 +143,7 @@ function toJsonArray(buf, obj, pretty, stack) {      buf.push('' + obj);    } else if (isNumber(obj)) {      if (isNaN(obj)) { -      buf.push($null); +      buf.push('null');      } else {        buf.push('' + obj);      } @@ -158,7 +158,7 @@ function toJsonArray(buf, obj, pretty, stack) {          var item = obj[i];          if (sep) buf.push(",");          if (!(item instanceof RegExp) && (isFunction(item) || isUndefined(item))) { -          buf.push($null); +          buf.push('null');          } else {            toJsonArray(buf, item, pretty, stack);          }  | 
