aboutsummaryrefslogtreecommitdiffstats
path: root/angular-debug.js
diff options
context:
space:
mode:
authorMisko Hevery2010-04-15 14:17:33 -0700
committerMisko Hevery2010-04-15 14:17:33 -0700
commit70e401ef100614295fc808e32f0142f07c315461 (patch)
tree7d31580fb512dd535465e4d42afb0252b0cf0071 /angular-debug.js
parentcd03fe92a5dbd2aba516b64fc8067c5fba1e4a81 (diff)
downloadangular.js-70e401ef100614295fc808e32f0142f07c315461.tar.bz2
added $route service
Diffstat (limited to 'angular-debug.js')
-rw-r--r--angular-debug.js4
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));