From c0db11c607dc770f5c7e4dc6e20b44570271c7b0 Mon Sep 17 00:00:00 2001 From: rodyhaddad Date: Sun, 8 Sep 2013 17:25:36 -0400 Subject: style(ngForm): simplify restrict difference between form and ngForm --- src/ng/directive/form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ng/directive/form.js') diff --git a/src/ng/directive/form.js b/src/ng/directive/form.js index 34fe6975..00e8f287 100644 --- a/src/ng/directive/form.js +++ b/src/ng/directive/form.js @@ -302,7 +302,7 @@ var formDirectiveFactory = function(isNgForm) { return ['$timeout', function($timeout) { var formDirective = { name: 'form', - restrict: 'E', + restrict: isNgForm ? 'EAC' : 'E', controller: FormController, compile: function() { return { @@ -351,7 +351,7 @@ var formDirectiveFactory = function(isNgForm) { } }; - return isNgForm ? extend(copy(formDirective), {restrict: 'EAC'}) : formDirective; + return formDirective; }]; }; -- cgit v1.2.3