diff options
| author | Vojta Jina | 2012-03-16 00:55:42 -0700 |
|---|---|---|
| committer | Vojta Jina | 2012-03-16 12:06:29 -0700 |
| commit | 1faafa31582c4e9413f48dc7d12f5b681f9fe9fd (patch) | |
| tree | 3d3d01c00f36c243e316b1b04639ee32d5813233 | |
| parent | 08bfea183a850b29da270eac47f80b598cbe600f (diff) | |
| download | angular.js-1faafa31582c4e9413f48dc7d12f5b681f9fe9fd.tar.bz2 | |
fix(forms): Remove double registering of formg3-v1.0.0rc1g3-v1.0.0-rc2
| -rw-r--r-- | src/directive/form.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/directive/form.js b/src/directive/form.js index f4c96455..98c291d4 100644 --- a/src/directive/form.js +++ b/src/directive/form.js @@ -62,10 +62,6 @@ function FormController(name, element, attrs) { addClass((isValid ? VALID_CLASS : INVALID_CLASS) + validationErrorKey); } - if (parentForm) { - parentForm.$addControl(form); - } - form.$addControl = function(control) { if (control.$name && !form.hasOwnProperty(control.$name)) { form[control.$name] = control; |
