aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/input.js
diff options
context:
space:
mode:
authorVojta Jina2012-03-29 13:50:27 -0700
committerVojta Jina2012-03-29 14:05:19 -0700
commit95c5df5958f6d42d08846fa40c10cb279ce76ee9 (patch)
treeaef8880ea2cbc5225ee60e5bee687750cb9937b5 /src/ng/directive/input.js
parent2cb907a8366e3273890f5ef6174b2e3970cd1720 (diff)
downloadangular.js-95c5df5958f6d42d08846fa40c10cb279ce76ee9.tar.bz2
fix(ngValue): bind properly inside ng-repeat
Diffstat (limited to 'src/ng/directive/input.js')
-rw-r--r--src/ng/directive/input.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js
index 2f7a6a64..3d53f7ca 100644
--- a/src/ng/directive/input.js
+++ b/src/ng/directive/input.js
@@ -1181,9 +1181,8 @@ var ngValueDirective = [function() {
attr.$set('value', scope.$eval(attr.ngValue));
};
} else {
- attr.$$observers.value = [];
-
- return function(scope) {
+ return function(scope, elm, attr) {
+ attr.$$observers.value = [];
scope.$watch(attr.ngValue, function(value) {
attr.$set('value', value, false);
});