From 85f601df4d3c610a4441e8002192cd78e6bcb3a0 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 7 Apr 2014 16:58:33 +0100 Subject: [PATCH] Remove unnecessary check on facetConfig for Termlists widget. --- src/mkws-widget-termlists.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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); }); -- 1.7.10.4