projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include empty SRU widget.
[mkws-moved-to-github.git]
/
src
/
mkws-widget.js
diff --git
a/src/mkws-widget.js
b/src/mkws-widget.js
index
e7ab19f
..
9a3a7f7
100644
(file)
--- 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),
team: team,
type: type,
node: $(node),
- config: mkws.objectInheritingFrom(team.config())
+ config: mkws.objectInheritingFrom(team.config)
};
function log(s) {
};
function log(s) {
@@
-43,8
+43,8
@@
function widget($, team, type, node) {
}
for (var name in overrides) {
}
for (var name in overrides) {
+ log(this + " overrode property " + name + "='" + overrides[name] + "' (was '" + attrs[name] + "') for " + type + " subwidget");
attrs[name] = overrides[name];
attrs[name] = overrides[name];
- log(this + " overrode property " + name + "='" + attrs[name] + "' for " + type + " subwidget");
}
if (defaults) {
}
if (defaults) {
@@
-66,6
+66,7
@@
function widget($, team, type, node) {
return s.join('');
};
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!/, '');
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 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
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;
} else if (old === query) {
this.log("duplicate autosearch: '" + query + "': ignoring");
return;