So close!

This commit is contained in:
Tom Coleman 2013-10-28 17:07:18 +11:00
parent 597d8e7aa9
commit 91066818a4

View file

@ -5,7 +5,7 @@ Handlebars.registerHelper('each_with_index', function(items, options) {
items.forEach(function(item, i){
var key = 'Branch-' + i;
out = out + Spark.labelBranch(key,function(){
options.fn(_.extend(item, {rank: i}));
return options.fn(_.extend(item, {rank: i}));
});
});
console.log('each_with_index:')