diff options
| author | Vojta Jina | 2012-03-28 13:47:57 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-03-29 07:30:32 -0700 |
| commit | f2106692b1ebf00aa5f8b2accd75f014b6cd4faa (patch) | |
| tree | 1a8c97e04014c559da4e7cc6877dbe34ce7d6783 /src/ng/compiler.js | |
| parent | 4557881cf84f168855fc8615e174f24d6c2dd6ce (diff) | |
| download | angular.js-f2106692b1ebf00aa5f8b2accd75f014b6cd4faa.tar.bz2 | |
fix($compile): properly clone attr.$observers in ng-repeat
The `attr` object was only shallow copied which caused all observers to be shared.
Fixing similar issue in ng-* boolean attributes as well as ng-src and ng-href.
Diffstat (limited to 'src/ng/compiler.js')
| -rw-r--r-- | src/ng/compiler.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ng/compiler.js b/src/ng/compiler.js index a22c5d66..2e8de121 100644 --- a/src/ng/compiler.js +++ b/src/ng/compiler.js @@ -611,6 +611,7 @@ function $CompileProvider($provide) { } else { attrs = shallowCopy(templateAttrs); attrs.$element = jqLite(linkNode); + attrs.$observers = {}; } element = attrs.$element; |
