mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
fix(closure): add type definition for Scope#$watchCollection
Closes #5475
This commit is contained in:
parent
864b2596b2
commit
8f329ffb82
1 changed files with 10 additions and 1 deletions
11
closure/angular.js
vendored
11
closure/angular.js
vendored
|
|
@ -762,7 +762,9 @@ angular.Module.requires;
|
|||
* $parent: angular.Scope,
|
||||
* $root: angular.Scope,
|
||||
* $watch: function(
|
||||
* (string|Function), (string|Function)=, boolean=):function()
|
||||
* (string|Function), (string|Function)=, boolean=):function(),
|
||||
* $watchCollection: function(
|
||||
* (string|Function), (string|Function)=):function()
|
||||
* }}
|
||||
*/
|
||||
angular.Scope;
|
||||
|
|
@ -834,6 +836,13 @@ angular.Scope.$root;
|
|||
*/
|
||||
angular.Scope.$watch = function(exp, opt_listener, opt_objectEquality) {};
|
||||
|
||||
/**
|
||||
* @param {string|Function} exp
|
||||
* @param {(string|Function)=} opt_listener
|
||||
* @return {function()}
|
||||
*/
|
||||
angular.Scope.$watchCollection = function(exp, opt_listener) {};
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* currentScope: angular.Scope,
|
||||
|
|
|
|||
Loading…
Reference in a new issue