From ebd0ddf06cecbd7a63dbddc39425001d9b2599e4 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 30 Oct 2014 17:03:28 +0000 Subject: [PATCH] Part of MKWS-322: renamed the 'termlists' event queue 'facets' --- src/mkws-team.js | 4 ++-- src/mkws-widget-termlists.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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(); -- 1.7.10.4