Part of MKWS-322: renamed the 'termlists' event queue 'facets'
authorMike Taylor <mike@indexdata.com>
Thu, 30 Oct 2014 17:03:28 +0000 (17:03 +0000)
committerMike Taylor <mike@indexdata.com>
Thu, 30 Oct 2014 17:03:28 +0000 (17:03 +0000)
src/mkws-team.js
src/mkws-widget-termlists.js

index 7ec9c2f..43f2fbf 100644 (file)
@@ -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");
     }
index e3dc55e..21810c6 100644 (file)
@@ -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();