diff options
| author | Misko Hevery | 2010-04-15 14:17:33 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-04-15 14:17:33 -0700 |
| commit | 70e401ef100614295fc808e32f0142f07c315461 (patch) | |
| tree | 7d31580fb512dd535465e4d42afb0252b0cf0071 /angular-debug.js | |
| parent | cd03fe92a5dbd2aba516b64fc8067c5fba1e4a81 (diff) | |
| download | angular.js-70e401ef100614295fc808e32f0142f07c315461.tar.bz2 | |
added $route service
Diffstat (limited to 'angular-debug.js')
| -rw-r--r-- | angular-debug.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/angular-debug.js b/angular-debug.js index 897db442..fd9b9902 100644 --- a/angular-debug.js +++ b/angular-debug.js @@ -807,6 +807,8 @@ function createScope(parent, services, existing) { exceptionHandler(e); } else if (exceptionHandler) { errorHandlerFor(exceptionHandler, e); + } else if (isFunction(instance.$exceptionHandler)) { + instance.$exceptionHandler(e); } } }, @@ -3395,7 +3397,7 @@ angularWidget('NG:SWITCH', function ngSwitch(element){ }); if (dstName) this.$set(dstName, dst); } - return match; + return match ? dst : null; } }); angularService("$window", bind(window, identity, window)); |
