From: Mike Taylor Date: Mon, 7 Apr 2014 15:58:33 +0000 (+0100) Subject: Remove unnecessary check on facetConfig for Termlists widget. X-Git-Tag: 1.0.0~1003 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=85f601df4d3c610a4441e8002192cd78e6bcb3a0;p=mkws-moved-to-github.git Remove unnecessary check on facetConfig for Termlists widget. --- diff --git a/src/mkws-widget-termlists.js b/src/mkws-widget-termlists.js index b035f4e..4250f88 100644 --- a/src/mkws-widget-termlists.js +++ b/src/mkws-widget-termlists.js @@ -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); });