Skip to content

Commit

Permalink
Fix accidental variable shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
ForbesLindesay committed May 24, 2016
1 parent 73d0038 commit 3059295
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/index.js
Expand Up @@ -78,16 +78,16 @@ function compileBody(str, options){
},
basedir: options.basedir
});
var filters = {};
var filtersSet = {};
Object.keys(exports.filters).forEach(function (key) {
filters[key] = exports.filters[key];
filtersSet[key] = exports.filters[key];
});
if (options.filters) {
Object.keys(options.filters).forEach(function (key) {
filters[key] = options.filters[key];
filtersSet[key] = options.filters[key];
});
}
ast = filters.handleFilters(ast, filters, options.filterOptions);
ast = filters.handleFilters(ast, filtersSet, options.filterOptions);
ast = link(ast);

// Compile
Expand Down

0 comments on commit 3059295

Please sign in to comment.