diff options
Diffstat (limited to 'src/Angular.js')
| -rw-r--r-- | src/Angular.js | 4 |
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; } |
