Remove unnecessary check on facetConfig for Termlists widget.
authorMike Taylor <mike@indexdata.com>
Mon, 7 Apr 2014 15:58:33 +0000 (16:58 +0100)
committerMike Taylor <mike@indexdata.com>
Mon, 7 Apr 2014 15:58:33 +0000 (16:58 +0100)
src/mkws-widget-termlists.js

index b035f4e..4250f88 100644 (file)
@@ -4,6 +4,7 @@ mkws.facetConfig = {
     author:   [ "Authors",  10, true ]
 }
 
+
 mkws.registerWidgetType('Termlists', function() {
     var that = this;
     var facets = that.config.facets;
@@ -13,14 +14,6 @@ mkws.registerWidgetType('Termlists', function() {
        $(that.node).show();
     });
 
-    for (var i = 0; i < facets.length; i++) {
-       var name = facets[i]
-       var ref = mkws.facetConfig[name];
-       if (!ref) {
-           alert("bad facet configuration: '" + name + "'");
-       }
-    }
-    
     widget.autosearch(that);
 });