From: Mike Taylor Date: Tue, 4 Mar 2014 15:04:36 +0000 (+0000) Subject: Move "return" higher up widget factory method. X-Git-Tag: 1.0.0~1334 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=98aff8e1034e848bdd19bc05f3b1a3279931bf76;p=mkws-moved-to-github.git Move "return" higher up widget factory method. Local functions come after it. --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index b6506c6..3dff008 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -190,6 +190,7 @@ function widget($, team, type, node) { } mkws.debug("made widget(team=" + team + ", type=" + type + ", node=" + node); + return that; function promoteTargets() { @@ -230,9 +231,6 @@ function widget($, team, type, node) { '' + M('Retrieved records') + ': ' + data.records + '/' + data.hits + ''); }); } - - - return that; }