aboutsummaryrefslogtreecommitdiffstats
path: root/src/Compiler.js
diff options
context:
space:
mode:
authorMisko Hevery2010-03-25 14:43:05 -0700
committerMisko Hevery2010-03-25 14:43:05 -0700
commit4fa166866b97d4f4dbd21514dbd674347da0a109 (patch)
tree6e6a79474f47481a596fc28cb61546f9506d6db0 /src/Compiler.js
parentb814c79b58deeeeaa12b03261399ef80c0d6cc9f (diff)
downloadangular.js-4fa166866b97d4f4dbd21514dbd674347da0a109.tar.bz2
input select-one now works
Diffstat (limited to 'src/Compiler.js')
-rw-r--r--src/Compiler.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Compiler.js b/src/Compiler.js
index 4423fcef..47ab0c14 100644
--- a/src/Compiler.js
+++ b/src/Compiler.js
@@ -120,6 +120,7 @@ Compiler.prototype = {
};
if (widget) {
+ descend = false;
template.addInit(widget.call(selfApi, element));
} else {
// process markup for text nodes only
@@ -152,12 +153,12 @@ Compiler.prototype = {
template.addInit(directive());
});
- // Process non text child nodes
- if (descend) {
- eachNode(element, function(child, i){
- template.addChild(i, self.templatize(child));
- });
- }
+ }
+ // Process non text child nodes
+ if (descend) {
+ eachNode(element, function(child, i){
+ template.addChild(i, self.templatize(child));
+ });
}
return template.empty() ? null : template;
}