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

Commit

Permalink
fix(closure): add type definition for Scope#$watchCollection
Browse files Browse the repository at this point in the history
Closes #5475
  • Loading branch information
oojerryoo authored and IgorMinar committed Dec 19, 2013
1 parent 864b259 commit 8f329ff
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion closure/angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8f329ff

Please sign in to comment.