Skip to content

Commit

Permalink
fix(view-compiler): template elements with template controllers work …
Browse files Browse the repository at this point in the history
…again

Fixes #133
  • Loading branch information
EisenbergEffect committed Jul 16, 2015
1 parent 51cad25 commit 71c67c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/html-behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ export class HtmlBehaviorResource {
viewStrategy = viewStrategy || this.viewStrategy || ViewStrategy.getDefault(target);
options = {
targetShadowDOM:this.targetShadowDOM,
beforeCompile:target.beforeCompile
beforeCompile:target.beforeCompile,
compileSurrogate:true
};

if(!viewStrategy.moduleId){
Expand Down
2 changes: 1 addition & 1 deletion src/view-compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class ViewCompiler {
content.appendChild(document.createComment('</view>'));

var factory = new ViewFactory(content, instructions, resources);
factory.surrogateInstruction = templateOrFragment.content ? this.compileSurrogate(templateOrFragment, resources) : null;
factory.surrogateInstruction = options.compileSurrogate ? this.compileSurrogate(templateOrFragment, resources) : null;

if(part){
factory.part = part;
Expand Down

0 comments on commit 71c67c2

Please sign in to comment.