From: Mike Taylor Date: Thu, 3 Apr 2014 15:50:17 +0000 (+0100) Subject: Rename maybeAutosearch function to autosearch. X-Git-Tag: 1.0.0~1066 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=7bf5eb4799d8f01f1a6038e9137eb0aa05d02d6c;p=mkws-moved-to-github.git Rename maybeAutosearch function to autosearch. --- diff --git a/src/mkws-widgets.js b/src/mkws-widgets.js index 435f378..bb529bf 100644 --- a/src/mkws-widgets.js +++ b/src/mkws-widgets.js @@ -60,7 +60,7 @@ function widget($, team, type, node) { // Utility function for use by all widgets that can invoke autosearch. -widget.maybeAutosearch = function(widget) { +widget.autosearch = function(widget) { var query = widget.config.autosearch; if (query) { if (query.match(/^!param!/)) { @@ -214,7 +214,7 @@ mkws.registerWidgetType('Termlists', function() { } }); - widget.maybeAutosearch(that); + widget.autosearch(that); }); @@ -310,7 +310,7 @@ mkws.registerWidgetType('Records', function() { } }); - widget.maybeAutosearch(that); + widget.autosearch(that); });