Skip to content

Commit

Permalink
Issue #11
Browse files Browse the repository at this point in the history
  • Loading branch information
regazzoj committed Aug 21, 2018
1 parent 1f320ae commit 8c074cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/js/modules/element/template-element-filters.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ export class TemplateElementFiltersModule
public addGoGoFilters(nunjucksEnvironment)
{
// adds custom fitlers here
for(let currentIndex=0; currentIndex<this.filters.length; ++currentIndex)
for(const currentFilter of this.filters)
{
let currentFilter = this.filters[currentIndex];
nunjucksEnvironment.addFilter(currentFilter, function(value) {
let objectArgument = {};
objectArgument[currentFilter] = value;
Expand Down

0 comments on commit 8c074cb

Please sign in to comment.