aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/directive/form.js4
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;