diff options
| author | Misko Hevery | 2010-09-21 19:20:34 +0200 |
|---|---|---|
| committer | Misko Hevery | 2010-09-21 19:20:34 +0200 |
| commit | 006fd2ca252400e87a419b929e00ea0277ff86ad (patch) | |
| tree | fcf3c021aa5c1e95dc2a43cc0d3f019b541d3ce5 /src/directives.js | |
| parent | 125d725e7dcd76b838925ac997b35afad4266752 (diff) | |
| download | angular.js-006fd2ca252400e87a419b929e00ea0277ff86ad.tar.bz2 | |
HEAD is now at 10c0151 Fixes on issue when a SELECT has OPTION which are data bound (ie OPTION has repeater or OPTION.value is bound), then SELECT does not update to match the correct OPTION after the change in model (ie after the OPTION repeater unrolls or OPTION.value is changed.)
Diffstat (limited to 'src/directives.js')
| -rw-r--r-- | src/directives.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/directives.js b/src/directives.js index 994ef90e..69648e31 100644 --- a/src/directives.js +++ b/src/directives.js @@ -115,6 +115,7 @@ var REMOVE_ATTRIBUTES = { angularDirective("ng:bind-attr", function(expression){ return function(element){ var lastValue = {}; + var updateFn = element.parent().data('$update'); this.$onEval(function(){ var values = this.$eval(expression); for(var key in values) { @@ -132,6 +133,7 @@ angularDirective("ng:bind-attr", function(expression){ } else { element.attr(key, value); } + this.$postEval(updateFn); } } }, element); |
