diff options
| author | Igor Minar | 2013-08-22 10:22:17 -0700 |
|---|---|---|
| committer | Igor Minar | 2013-08-22 10:22:17 -0700 |
| commit | dbcc44dc80644e4390523ab33204b460f60648ec (patch) | |
| tree | 7a74ed4e80b5c360ff6ee282a2d05da1ba187f9b /src | |
| parent | db87fd52cafa28c13ae0642b91f9a30f0301f257 (diff) | |
| download | angular.js-dbcc44dc80644e4390523ab33204b460f60648ec.tar.bz2 | |
revert: feat(ngForm): Supports expression in form names
This reverts commit 4407e81c618d42c70e8cfca4f52dfc4a669b5c68.
No features or breaking changes in the stable branch please.
Diffstat (limited to 'src')
| -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 ec91f4b8..72f752be 100644 --- a/src/ng/directive/form.js +++ b/src/ng/directive/form.js @@ -306,13 +306,13 @@ var formDirectiveFactory = function(isNgForm) { alias = attr.name || attr.ngForm; if (alias) { - setter(scope, alias, controller, alias); + scope[alias] = controller; } if (parentFormCtrl) { formElement.bind('$destroy', function() { parentFormCtrl.$removeControl(controller); if (alias) { - setter(scope, alias, undefined, alias); + scope[alias] = undefined; } extend(controller, nullFormCtrl); //stop propagating child destruction handlers upwards }); |
