Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
sort-group: do not account repeating predicates
  • Loading branch information
indutny committed Mar 14, 2013
1 parent 93ac464 commit c2c2c14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/xjst/engines/sort-group.js
Expand Up @@ -82,8 +82,11 @@ exports.execute = function engine(templates, options, config) {
var chart = {};

templates.forEach(function(template) {
var seen = {};
template[0].forEach(function(match) {
var key = match[0];
if (seen[key]) return;
seen[key] = true;

if (!utils.isSimple(match[1])) {
chart[key] = -Infinity;
Expand Down

0 comments on commit c2c2c14

Please sign in to comment.