Permalink
Browse files

Merge branch '0.4'

  • Loading branch information...
2 parents 7f60c56 + 5c292a7 commit 60e432238431fd72e90bdf2c05aa4c45b44401e7 @indutny indutny committed Mar 14, 2013
Showing with 4 additions and 1 deletion.
  1. +3 −0 lib/xjst/engines/sort-group.js
  2. +1 −1 package.json
View
3 lib/xjst/engines/sort-group.js
@@ -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;
View
2 package.json
@@ -1,7 +1,7 @@
{
"name": "xjst",
"description": "XSLT inspired JavaScript templates (with spices)",
- "version": "0.4.7",
+ "version": "0.4.10",
"homepage": "http://github.com/veged/xjst",
"author": "Sergey Berezhnoy <veged@mail.ru> (http://github.com/veged)",
"contributors": [

0 comments on commit 60e4322

Please sign in to comment.