Do not pass that.config.query into the facet template.
authorMike Taylor <mike@indexdata.com>
Tue, 27 Jan 2015 13:05:01 +0000 (13:05 +0000)
committerMike Taylor <mike@indexdata.com>
Tue, 27 Jan 2015 13:05:01 +0000 (13:05 +0000)
This was never needed, and is in fact currently used only as a local
cache by the widget.autosearch() function, rather rudely.

src/mkws-widget-facets.js

index 520faca..fbf0e47 100644 (file)
@@ -73,7 +73,6 @@ mkws.registerWidgetType('facet', function() {
     that.node.html(template({
       name: name,
       caption: caption,
-      query: that.config.query,
       terms: terms
     }));
   });