aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/compile.js
diff options
context:
space:
mode:
authorIgor Minar2012-05-02 16:04:11 -0700
committerIgor Minar2012-05-03 00:15:26 -0700
commit843f762c573e38a044f920c5575c6feb46bc7226 (patch)
tree8db63058a0d006fda47acb9ccd42d76a00548e2d /src/ng/compile.js
parentbeea3a4beda0aaed5fc54af1a992b1c161db7752 (diff)
downloadangular.js-843f762c573e38a044f920c5575c6feb46bc7226.tar.bz2
fix($compile): prevent duplicate directive controller instantiation
Closes #876
Diffstat (limited to 'src/ng/compile.js')
-rw-r--r--src/ng/compile.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js
index 59a70145..d0b6e749 100644
--- a/src/ng/compile.js
+++ b/src/ng/compile.js
@@ -819,7 +819,9 @@ function $CompileProvider($provide) {
originalWidgetNode = tElement[0],
asyncWidgetDirective = directives.shift(),
// The fact that we have to copy and patch the directive seems wrong!
- syncWidgetDirective = extend({}, asyncWidgetDirective, {templateUrl:null, transclude:null}),
+ syncWidgetDirective = extend({}, asyncWidgetDirective, {
+ controller: null, templateUrl: null, transclude: null
+ }),
html = tElement.html();
tElement.html('');