From: Mike Taylor Date: Thu, 30 Oct 2014 17:03:28 +0000 (+0000) Subject: Part of MKWS-322: renamed the 'termlists' event queue 'facets' X-Git-Tag: 1.0.0~98^2^2~8 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=ebd0ddf06cecbd7a63dbddc39425001d9b2599e4 Part of MKWS-322: renamed the 'termlists' event queue 'facets' --- diff --git a/src/mkws-team.js b/src/mkws-team.js index 7ec9c2f..43f2fbf 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -122,7 +122,7 @@ mkws.makeTeam = function($, teamName) { function onTerm(data) { log("term"); - queue("termlists").publish(data); + queue("facets").publish(data); } function onShow(data, teamName) { @@ -172,7 +172,7 @@ mkws.makeTeam = function($, teamName) { params.onstat = onStat; log("setting stat callback"); } - if (m_queues.termlists && config.facets.length) { + if (m_queues.facets && config.facets.length) { params.onterm = onTerm; log("setting term callback"); } diff --git a/src/mkws-widget-termlists.js b/src/mkws-widget-termlists.js index e3dc55e..21810c6 100644 --- a/src/mkws-widget-termlists.js +++ b/src/mkws-widget-termlists.js @@ -2,7 +2,7 @@ mkws.registerWidgetType('termlists', function() { // Initially hide the termlists; display when we get results var that = this; var team = this.team; - team.queue("termlists").subscribe(function(data) { + team.queue("facets").subscribe(function(data) { that.node.addClass("active"); }); @@ -33,7 +33,7 @@ mkws.registerWidgetType('facet', function() { return '[Widget ' + team.name() + ':' + that.type + '(' + name + ')]'; }; - team.queue("termlists").subscribe(function(data) { + team.queue("facets").subscribe(function(data) { data = data[name]; var terms = []; var teamName = team.name();