From a442ae54ee85ce806e8b9c33b6e4845f7c7fde92 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 4 Apr 2014 16:49:44 +0100 Subject: [PATCH] Remove unnecessary check. --- src/mkws-widget-termlists.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/mkws-widget-termlists.js b/src/mkws-widget-termlists.js index 0b6d6c0..69d97a5 100644 --- a/src/mkws-widget-termlists.js +++ b/src/mkws-widget-termlists.js @@ -11,16 +11,10 @@ mkws.registerWidgetType('Termlists', function() { this.team.queue("termlists").subscribe(function(data) { // no facets: this should never happen var facets = that.config.facets; - if (!facets || facets.length == 0) { - alert("onTerm called even though we have no facets: " + $.toJSON(data)); - $(that.node).hide(); - return; - } // display if we first got results $(that.node).show(); - var acc = []; acc.push('
' + M('Termlists') + '
'); for (var i = 0; i < facets.length; i++) { -- 1.7.10.4