Remove unnecessary check.
authorMike Taylor <mike@indexdata.com>
Fri, 4 Apr 2014 15:49:44 +0000 (16:49 +0100)
committerMike Taylor <mike@indexdata.com>
Fri, 4 Apr 2014 15:49:44 +0000 (16:49 +0100)
src/mkws-widget-termlists.js

index 0b6d6c0..69d97a5 100644 (file)
@@ -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('<div class="title">' + M('Termlists') + '</div>');
        for (var i = 0; i < facets.length; i++) {