Remove pointless defensive test.
authorMike Taylor <mike@indexdata.com>
Fri, 4 Apr 2014 13:42:38 +0000 (14:42 +0100)
committerMike Taylor <mike@indexdata.com>
Fri, 4 Apr 2014 13:42:38 +0000 (14:42 +0100)
src/mkws-widget-termlists.js

index 66b8a4d..b9e7b11 100644 (file)
@@ -3,11 +3,6 @@ mkws.registerWidgetType('Termlists', function() {
     var M = mkws.M;
 
     this.team.queue("termlists").subscribe(function(data) {
-       if (!that.node) {
-           alert("termlists event when there are no termlists");
-           return;
-       }
-
        // no facets: this should never happen
        var facets = that.config.facets;
        if (!facets || facets.length == 0) {