diff options
| author | Igor Minar | 2011-08-05 16:24:12 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-08-06 01:54:06 -0700 |
| commit | 06835a462afc7105532e13abdd5217314b3ae71e (patch) | |
| tree | eef3f670482fb1061f99ce12228f687051cca1c5 /src/parser.js | |
| parent | 142cffcf64d2dce93089e9a73257bddf50e96990 (diff) | |
| download | angular.js-06835a462afc7105532e13abdd5217314b3ae71e.tar.bz2 | |
style($function): replace $function with 'function'
Diffstat (limited to 'src/parser.js')
| -rw-r--r-- | src/parser.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.js b/src/parser.js index 9f2442de..dadab1fb 100644 --- a/src/parser.js +++ b/src/parser.js @@ -515,7 +515,7 @@ function parser(text, json){ if (instance) instance = instance[key]; } - if (typeof instance != $function) { + if (!isFunction(instance)) { throwError("should be a function", token); } return instance; @@ -765,7 +765,7 @@ function compileExpr(expr) { // TODO(misko): Deprecate? Remove! // I think that compilation should be a service. function expressionCompile(exp) { - if (typeof exp === $function) return exp; + if (isFunction(exp)) return exp; var fn = compileCache[exp]; if (!fn) { fn = compileCache[exp] = parser(exp).statements(); |
