From 1faafa31582c4e9413f48dc7d12f5b681f9fe9fd Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Fri, 16 Mar 2012 00:55:42 -0700 Subject: [PATCH] fix(forms): Remove double registering of form --- src/directive/form.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/directive/form.js b/src/directive/form.js index f4c96455c030..98c291d41618 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;