aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/angular-mocks.js2
-rw-r--r--src/directives.js6
-rw-r--r--src/service/scope.js2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/angular-mocks.js b/src/angular-mocks.js
index b4b2fd19..8ce3011d 100644
--- a/src/angular-mocks.js
+++ b/src/angular-mocks.js
@@ -561,7 +561,7 @@ angular.mock.TzDate = function (offset, timestamp) {
self[methodName] = function() {
throw {
name: "MethodNotImplemented",
- message: "Method '" + methodName + "' is not implemented in the TzDate mock"
+ message: "Method '" + methodName + "' is not implemented in the TzDate mock"
};
};
});
diff --git a/src/directives.js b/src/directives.js
index ee88e2a5..daa42048 100644
--- a/src/directives.js
+++ b/src/directives.js
@@ -236,7 +236,7 @@ angularDirective("ng:controller", function(expression){
angularDirective("ng:bind", function(expression, element){
element.addClass('ng-binding');
var exprFn = parser(expression).statements();
- return function(element) {
+ return ['$exceptionHandler', '$element', function($exceptionHandler, element) {
var lastValue = Number.NaN;
this.$watch(function(scope) {
// TODO(misko): remove error handling https://github.com/angular/angular.js/issues/347
@@ -269,7 +269,7 @@ angularDirective("ng:bind", function(expression, element){
}
}
} catch (e) {
- scope.$service('$exceptionHandler')(e);
+ $exceptionHandler(e);
} finally {
if (hadOwnElement) {
scope.$element = oldElement;
@@ -278,7 +278,7 @@ angularDirective("ng:bind", function(expression, element){
}
}
});
- };
+ }];
});
var bindTemplateCache = {};
diff --git a/src/service/scope.js b/src/service/scope.js
index f78ac448..8c7926de 100644
--- a/src/service/scope.js
+++ b/src/service/scope.js
@@ -312,7 +312,7 @@ function $RootScopeProvider(){
try {
current.$eval(asyncQueue.shift());
} catch (e) {
- current.$service('$exceptionHandler')(e);
+ $exceptionHandler(e);
}
}
if ((watchers = current.$$watchers)) {