fix(ngMock): annotate $RootScopeDecorator

Fixes #10273
Closes #10275
Closes #10277
This commit is contained in:
Shahar Talmi
2014-11-30 12:00:57 +02:00
committed by Pawel Kozlowski
parent 3f07eb227d
commit 9a83f9d2fa

View File

@@ -2047,7 +2047,7 @@ angular.mock.e2e.$httpBackendDecorator =
*
* In addition to all the regular `Scope` methods, the following helper methods are available:
*/
angular.mock.$RootScopeDecorator = function($delegate) {
angular.mock.$RootScopeDecorator = ['$delegate', function($delegate) {
var $rootScopePrototype = Object.getPrototypeOf($delegate);
@@ -2119,7 +2119,7 @@ angular.mock.$RootScopeDecorator = function($delegate) {
return count;
}
};
}];
if (window.jasmine || window.mocha) {