diff options
| author | Misko Hevery | 2010-07-20 17:13:31 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-07-20 17:13:31 -0700 |
| commit | 719f6e15a052d50f30dcecc722193804a3d5eaed (patch) | |
| tree | 7a12dc2a438610e14066c32ddbde9ef436452775 /src/Scope.js | |
| parent | 0f4b068bd66cde63b222b114dbc1c5fec257a890 (diff) | |
| download | angular.js-719f6e15a052d50f30dcecc722193804a3d5eaed.tar.bz2 | |
clean up error handling a bit.
Diffstat (limited to 'src/Scope.js')
| -rw-r--r-- | src/Scope.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Scope.js b/src/Scope.js index f577f695..549cc944 100644 --- a/src/Scope.js +++ b/src/Scope.js @@ -147,7 +147,7 @@ function createScope(parent, services, existing) { try { return expressionCompile(expression).apply(instance, slice.call(arguments, 2, arguments.length)); } catch (e) { - error(e); + (instance.$log || {error:error}).error(e); if (isFunction(exceptionHandler)) { exceptionHandler(e); } else if (exceptionHandler) { |
