From: Mike Taylor Date: Tue, 27 May 2014 15:53:29 +0000 (+0100) Subject: Merge the two consecutive if(!query) clauses. X-Git-Tag: 1.0.0~593 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=65754d09ba8dd4b02784610ec66bb593613620a9;p=mkws-moved-to-github.git Merge the two consecutive if(!query) clauses. --- diff --git a/src/mkws-widget.js b/src/mkws-widget.js index 70bd0d0..3205990 100644 --- a/src/mkws-widget.js +++ b/src/mkws-widget.js @@ -132,9 +132,7 @@ widget.autosearch = function(widget) { alert("This page has a MasterKey widget that needs a query specified by the '" + name + "' variable"); } } - } - if (query) { var sortOrder = widget.config.sort; var maxrecs = widget.config.maxrecs; var perpage = widget.config.perpage;