Skip to content

Commit

Permalink
deoptimize on directives
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Jul 2, 2017
1 parent b7d419e commit 1710b85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/compiler/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const generateProps = function(node, parent, state) {
attrs: props
}

let hasDirectives = false;
let directives = {};

let hasSpecialDirectivesAfter = false;
Expand Down Expand Up @@ -40,7 +41,8 @@ const generateProps = function(node, parent, state) {
hasSpecialDirectivesAfter = true;
}
} else if(name[0] === "m" && name[1] === "-") {

node.meta.shouldRender = true;
hasDirectives = true;
} else {
const value = prop.value;
const compiled = compileTemplate(value, state.dependencies, true);
Expand Down

0 comments on commit 1710b85

Please sign in to comment.