aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/compile.js
diff options
context:
space:
mode:
authorIgor Minar2012-10-25 00:33:36 -0700
committerIgor Minar2012-10-29 19:38:03 -0700
commit4dbd8452eb93b700c8aaafb7efb97cc20a2c0ff0 (patch)
treecde56d1c5d8f205b9ed8650bf4930aaf77b58d4e /src/ng/compile.js
parent45a8db9c0814549425542bdb301af9d4a2b50f47 (diff)
downloadangular.js-4dbd8452eb93b700c8aaafb7efb97cc20a2c0ff0.tar.bz2
fix($compile): prevent double attr interpolation w/ templateUrl
This fixes the issue that caused two attr interpolation observers to be registered for the same attribute as a result of isolate scope definition with attr (@) property for this attribute. Duplicate observers would then fight with each other updating the model. The issue occured only when this directive was used in a repeater because that's when we clone the template node which caused the two observers to point to two different sets of $attr instances. Closes #1166, #836
Diffstat (limited to 'src/ng/compile.js')
-rw-r--r--src/ng/compile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js
index 3fa4691c..ae926923 100644
--- a/src/ng/compile.js
+++ b/src/ng/compile.js
@@ -899,7 +899,7 @@ function $CompileProvider($provide) {
origAsyncDirective = directives.shift(),
// The fact that we have to copy and patch the directive seems wrong!
derivedSyncDirective = extend({}, origAsyncDirective, {
- controller: null, templateUrl: null, transclude: null
+ controller: null, templateUrl: null, transclude: null, scope: null
});
$compileNode.html('');