Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Commit

Permalink
Removing unnecessary inclusion of VAR_TOKEN from inherited files.
Browse files Browse the repository at this point in the history
  • Loading branch information
nsaun committed Oct 28, 2012
1 parent 58ad56e commit a96b1e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/parser.js
Expand Up @@ -394,7 +394,7 @@ function precompile(indent, context) {
}

}
} else if (token.type === LOGIC_TOKEN || token.type === VAR_TOKEN) {
} else if (token.type === LOGIC_TOKEN) {
// Preserve any template logic from the extended template.
preservedTokens.push(token);
}
Expand All @@ -405,7 +405,6 @@ function precompile(indent, context) {
}, this);



// If extendsHasVar == true, then we know {% extends %} is not using a string literal, thus we can't
// compile until render is called, so we return false.
if (extendsHasVar) {
Expand Down

0 comments on commit a96b1e0

Please sign in to comment.