Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
fix(forms): Remove double registering of form
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina committed Mar 16, 2012
1 parent 08bfea1 commit 1faafa3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/directive/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1faafa3

Please sign in to comment.