mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-17 22:34:43 +08:00
fix(forms): Remove double registering of form
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user