mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-09 23:34:42 +00:00
fix(forms): Remove double registering of form
This commit is contained in:
parent
08bfea183a
commit
1faafa3158
1 changed files with 0 additions and 4 deletions
|
|
@ -62,10 +62,6 @@ function FormController(name, element, attrs) {
|
||||||
addClass((isValid ? VALID_CLASS : INVALID_CLASS) + validationErrorKey);
|
addClass((isValid ? VALID_CLASS : INVALID_CLASS) + validationErrorKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parentForm) {
|
|
||||||
parentForm.$addControl(form);
|
|
||||||
}
|
|
||||||
|
|
||||||
form.$addControl = function(control) {
|
form.$addControl = function(control) {
|
||||||
if (control.$name && !form.hasOwnProperty(control.$name)) {
|
if (control.$name && !form.hasOwnProperty(control.$name)) {
|
||||||
form[control.$name] = control;
|
form[control.$name] = control;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue