From 37cbccd1f195ecf7a1ad6dbf706937c8fd23fd1c Mon Sep 17 00:00:00 2001 From: Brian Atkinson Date: Thu, 5 Dec 2013 19:30:21 -0800 Subject: [PATCH] feat(closure): add missing FormController extern definitions --- closure/angular.js | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/closure/angular.js b/closure/angular.js index d39b2ab876f3..4b4d00b43cd6 100644 --- a/closure/angular.js +++ b/closure/angular.js @@ -1441,6 +1441,11 @@ angular.NgModelController.prototype.$viewValue; */ angular.FormController = function() {}; +/** + * @param {*} control + */ +angular.FormController.prototype.$addControl = function(control) {}; + /** * @type {boolean} */ @@ -1456,11 +1461,39 @@ angular.FormController.prototype.$error; */ angular.FormController.prototype.$invalid; +/** + * @type {string} + */ +angular.FormController.prototype.$name; + /** * @type {boolean} */ angular.FormController.prototype.$pristine; +/** + * @param {*} control + */ +angular.FormController.prototype.$removeControl = function(control) {}; + +/** + * @type {function()} + */ +angular.FormController.prototype.$setDirty = function() {}; + +/** + * @type {function()} + */ +angular.FormController.prototype.$setPristine = function() {}; + +/** + * @param {string} validationToken + * @param {boolean} isValid + * @param {*} control + */ +angular.FormController.prototype.$setValidity = function( + validationToken, isValid, control) {}; + /** * @type {boolean} */