mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-12 22:45:52 +08:00
fix(ngMock): annotate $RootScopeDecorator
Fixes #10273 Closes #10275 Closes #10277
This commit is contained in:
committed by
Pawel Kozlowski
parent
3f07eb227d
commit
9a83f9d2fa
4
src/ngMock/angular-mocks.js
vendored
4
src/ngMock/angular-mocks.js
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user