mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
chore(angular): clean up unused constants
This commit is contained in:
parent
78c7066422
commit
7cb03c5ab9
2 changed files with 4 additions and 14 deletions
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue