Skip to content

Commit

Permalink
fix(closure): add type definition for Scope#$watchCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
oojerryoo authored and jamesdaily committed Jan 27, 2014
1 parent 99e8736 commit 612bd1d
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 612bd1d

Please sign in to comment.