team: team,
type: type,
node: $(node),
- config: mkws.objectInheritingFrom(team.config())
+ config: mkws.objectInheritingFrom(team.config)
};
function log(s) {
}
for (var name in overrides) {
+ log(this + " overrode property " + name + "='" + overrides[name] + "' (was '" + attrs[name] + "') for " + type + " subwidget");
attrs[name] = overrides[name];
- log(this + " overrode property " + name + "='" + attrs[name] + "' for " + type + " subwidget");
}
if (defaults) {
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!/, '');
var that = this;
var query = this.config.autosearch;
if (query) {
- query = this.expandValue(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;