aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Angular.js12
-rw-r--r--src/JSON.js6
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);
}