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 | |
| parent | 78c7066422a9c800e7d527a4ed588a138a326551 (diff) | |
| download | angular.js-7cb03c5ab9376c5ce5d689f2bf1c18dc141237a1.tar.bz2 | |
chore(angular): clean up unused constants
| -rw-r--r-- | src/Angular.js | 12 | ||||
| -rw-r--r-- | src/JSON.js | 6 |
2 files changed, 4 insertions, 14 deletions
diff --git a/src/Angular.js b/src/Angular.js index 72a892e5..e8bb3880 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -68,24 +68,14 @@ function shivForIE(elementName) { return elementName; } -var _undefined = undefined, - _null = null, - $$scope = '$scope', - $angular = 'angular', - $array = 'array', +var $$scope = '$scope', $boolean = 'boolean', $console = 'console', - $date = 'date', $length = 'length', $name = 'name', - $noop = 'noop', - $null = 'null', $object = 'object', $string = 'string', - $value = 'value', - $selected = 'selected', $undefined = 'undefined', - NOOP = 'noop', Error = window.Error, /** holds major version number for IE or NaN for real browsers */ msie = parseInt((/msie (\d+)/.exec(lowercase(navigator.userAgent)) || [])[1], 10), 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); } |
