X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-widget.js;h=9a3a7f76c458694c50a6a7c31d71795284060d2f;hb=ef24216dc703f3887c7d6207eff8a16f5c53dd29;hp=39513d9b8ca0eee5c16c97f82c8cbe1b425077d9;hpb=759c911e18cd29fa55e7bf2555dd2926aaadc7d5;p=mkws-moved-to-github.git diff --git a/src/mkws-widget.js b/src/mkws-widget.js index 39513d9..9a3a7f7 100644 --- a/src/mkws-widget.js +++ b/src/mkws-widget.js @@ -10,7 +10,7 @@ function widget($, team, type, node) { team: team, type: type, node: $(node), - config: mkws.objectInheritingFrom(team.config()) + config: mkws.objectInheritingFrom(team.config) }; function log(s) { @@ -66,6 +66,7 @@ function widget($, team, type, node) { return s.join(''); }; + // ### why is this a member function? It's never called from outside this file. that.expandValue = function(val) { if (val.match(/^!param!/)) { var param = val.replace(/^!param!/, ''); @@ -98,10 +99,10 @@ function widget($, team, type, node) { var that = this; var query = this.config.autosearch; if (query) { - var old = this.team.config().query; + var old = this.team.config.query; if (!old) { // Stash this for subsequent inspection - this.team.config().query = query; + this.team.config.query = query; } else if (old === query) { this.log("duplicate autosearch: '" + query + "': ignoring"); return;