aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
authorMisko Hevery2010-08-18 16:04:40 -0700
committerMisko Hevery2010-08-18 16:04:40 -0700
commit1087270c95f6bbafd3715c9a5eecdafac79c9daa (patch)
tree7c0f0cfb433f69a11756c0b87c01e6927956394f /src/Angular.js
parentf09415d0de5d383efc9e2cb35d1323a5aac2371d (diff)
downloadangular.js-1087270c95f6bbafd3715c9a5eecdafac79c9daa.tar.bz2
added better handling of ng:format=number
Diffstat (limited to 'src/Angular.js')
-rw-r--r--src/Angular.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 3970f762..4c2e3716 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -4,6 +4,8 @@ if (typeof document.getAttribute == 'undefined')
document.getAttribute = function() {};
var consoleNode,
+ NULL = null,
+ UNDEFIEND = undefined,
PRIORITY_FIRST = -99999,
PRIORITY_WATCH = -1000,
PRIORITY_LAST = 99999,
@@ -105,7 +107,7 @@ function jqLiteWrap(element) {
}
function isUndefined(value){ return typeof value == 'undefined'; }
function isDefined(value){ return typeof value != 'undefined'; }
-function isObject(value){ return typeof value == 'object';}
+function isObject(value){ return value!=null && typeof value == 'object';}
function isString(value){ return typeof value == 'string';}
function isNumber(value){ return typeof value == 'number';}
function isArray(value) { return value instanceof Array; }