fix(forms): Remove double registering of form

This commit is contained in:
Vojta Jina 2012-03-16 00:55:42 -07:00
parent 08bfea183a
commit 1faafa3158

View file

@ -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;