Skip to content

Commit

Permalink
optimize optimizer, and deoptimize if there is a special directive pr…
Browse files Browse the repository at this point in the history
…esent
  • Loading branch information
kbrsh committed Jul 1, 2017
1 parent bc75579 commit b7d419e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/compiler/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const generateProps = function(node, parent, state) {
afterGenerate: afterGenerate
};

node.meta.shouldRender = true;
hasSpecialDirectivesAfter = true;
}
} else if(name[0] === "m" && name[1] === "-") {
Expand All @@ -46,9 +47,6 @@ const generateProps = function(node, parent, state) {

if(value !== compiled) {
node.meta.shouldRender = true;
if(parent !== undefined) {
parent.meta.shouldRender = true;
}
}

if(state.hasAttrs === false) {
Expand Down

0 comments on commit b7d419e

Please sign in to comment.