From: Mike Taylor Date: Fri, 4 Apr 2014 15:20:29 +0000 (+0100) Subject: Remove unused arguments from addSingleScaffold and makeSingleFacet X-Git-Tag: 1.0.0~1028 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=9f2cf5accdc8c7445b58cdfeed6bf2f312d20119;p=mkws-moved-to-github.git Remove unused arguments from addSingleScaffold and makeSingleFacet --- diff --git a/src/mkws-widget-termlists.js b/src/mkws-widget-termlists.js index ef89ad8..cfb603a 100644 --- a/src/mkws-widget-termlists.js +++ b/src/mkws-widget-termlists.js @@ -30,8 +30,8 @@ mkws.registerWidgetType('Termlists', function() { if (!ref) { alert("bad facet configuration: '" + name + "'"); } else { - addSingleScaffold(acc, ref[0], data[name], ref[1], ref[2] ? name : null); - output[name] = makeSingleFacet(acc, ref[0], data[name], ref[1], ref[2] ? name : null); + addSingleScaffold(acc, ref[0]); + output[name] = makeSingleFacet(ref[0], data[name], ref[1], ref[2] ? name : null); } } @@ -46,14 +46,14 @@ mkws.registerWidgetType('Termlists', function() { that.team.findnode('.mkwsFacet' + caption).html(output[name]); } - function addSingleScaffold(acc, caption, data, max, pzIndex) { + function addSingleScaffold(acc, caption) { var teamName = that.team.name(); acc.push('
'); acc.push('
'); } - function makeSingleFacet(acc, caption, data, max, pzIndex) { + function makeSingleFacet(caption, data, max, pzIndex) { var teamName = that.team.name(); var a2 = [];