projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
65754d0
)
Comment explains delayed initialisation.
author
Mike Taylor
<mike@indexdata.com>
Tue, 27 May 2014 16:08:52 +0000
(17:08 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Tue, 27 May 2014 16:08:52 +0000
(17:08 +0100)
src/mkws-widget.js
patch
|
blob
|
history
diff --git
a/src/mkws-widget.js
b/src/mkws-widget.js
index
3205990
..
d0a40ca
100644
(file)
--- a/
src/mkws-widget.js
+++ b/
src/mkws-widget.js
@@
-141,6
+141,10
@@
widget.autosearch = function(widget) {
var targetfilter = widget.config.targetfilter;
widget.team.queue("ready").subscribe(function() {
var targetfilter = widget.config.targetfilter;
widget.team.queue("ready").subscribe(function() {
+ // Postpone testing for the target configuration item: this is
+ // not set at compile-time for Record subclass widgets that set
+ // it in the subclass, as widget.autosearch is called in the
+ // superclass, before the subclass fiddles with the configuration.
var target = widget.config.target;
if (target) targetfilter = 'udb=="' + target + '"';
var target = widget.config.target;
if (target) targetfilter = 'udb=="' + target + '"';