diff options
Diffstat (limited to 'src/ng/directive/form.js')
| -rw-r--r-- | src/ng/directive/form.js | 4 |
1 files changed, 2 insertions, 2 deletions
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; }]; }; |
