Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 97728d2

Browse files
committed
fix(ngMock): explicitly annotate $rootScopeDecorator
Closes #10273
1 parent e6a2527 commit 97728d2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ngMock/angular-mocks.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -2047,7 +2047,9 @@ angular.mock.e2e.$httpBackendDecorator =
20472047
*
20482048
* In addition to all the regular `Scope` methods, the following helper methods are available:
20492049
*/
2050-
angular.mock.$RootScopeDecorator = function($delegate) {
2050+
$RootScopeDecorator.$inject = ['$delegate'];
2051+
angular.mock.$RootScopeDecorator = $RootScopeDecorator;
2052+
function $RootScopeDecorator($delegate) {
20512053

20522054
var $rootScopePrototype = Object.getPrototypeOf($delegate);
20532055

@@ -2119,7 +2121,7 @@ angular.mock.$RootScopeDecorator = function($delegate) {
21192121

21202122
return count;
21212123
}
2122-
};
2124+
}
21232125

21242126

21252127
if (window.jasmine || window.mocha) {

0 commit comments

Comments
 (0)