aboutsummaryrefslogtreecommitdiffstats
path: root/src/Compiler.js
diff options
context:
space:
mode:
authorIgor Minar2011-10-07 14:11:32 -0700
committerIgor Minar2011-10-12 23:04:48 -0700
commit8611ebe6a0d61092c1e66eb636e817c1445fd73f (patch)
tree36d0e6acf79845f399b05fc5f475805c87ae0b7f /src/Compiler.js
parent8f46a3c9ac075c6300e974efaecd0d10d986a515 (diff)
downloadangular.js-8611ebe6a0d61092c1e66eb636e817c1445fd73f.tar.bz2
fix(compiler): linking function should call $digest
The linked scope should be $digest-ed but only if a $digest isn't already running on it.
Diffstat (limited to 'src/Compiler.js')
-rw-r--r--src/Compiler.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Compiler.js b/src/Compiler.js
index a355444b..adbab7e7 100644
--- a/src/Compiler.js
+++ b/src/Compiler.js
@@ -203,6 +203,7 @@ Compiler.prototype = {
scope.$element = element;
(cloneConnectFn||noop)(element, scope);
template.link(element, scope);
+ if (!scope.$$phase) scope.$digest();
return scope;
};
},