diff options
| author | rodyhaddad | 2013-09-08 17:25:36 -0400 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-09-11 13:28:17 +0100 | 
| commit | c0db11c607dc770f5c7e4dc6e20b44570271c7b0 (patch) | |
| tree | e6775d09b161195fb36d6b3cd5198985fe33dcdc /src/ng/directive/form.js | |
| parent | 573d41b73cf67b59b2c9f84ace7f9491793fa179 (diff) | |
| download | angular.js-c0db11c607dc770f5c7e4dc6e20b44570271c7b0.tar.bz2 | |
style(ngForm): simplify restrict difference between form and ngForm
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;    }];  }; | 
