diff options
| author | Misko Hevery | 2010-05-30 16:34:59 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-05-30 16:34:59 -0700 |
| commit | c7d64f6d124f10c66309042c2d77896215ed43b8 (patch) | |
| tree | b8127077d89d377dca17e70bba311f691424d5d1 /src/apis.js | |
| parent | 0d87208553af7a9ad6c6c1c73bd3a4105062eafa (diff) | |
| download | angular.js-c7d64f6d124f10c66309042c2d77896215ed43b8.tar.bz2 | |
improve error handling with elements
Diffstat (limited to 'src/apis.js')
| -rw-r--r-- | src/apis.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apis.js b/src/apis.js index 166ca27c..fda28346 100644 --- a/src/apis.js +++ b/src/apis.js @@ -296,8 +296,9 @@ var angularFunction = { if (isFunction(expression)){ return expression; } else if (expression){ + var fn = expressionCompile(expression); return function($) { - return expressionCompile(expression).apply($); + return fn.apply($); }; } else { return identity; |
