X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-widget.js;h=d0a40cae5e4dbb01bee15e5f812a1fa4d2e4efd6;hb=a6d4199088ca42d19ac7236f6ca576caad2e4a7e;hp=320599007718af0226cc9a0ae0e046d379124e5b;hpb=65754d09ba8dd4b02784610ec66bb593613620a9;p=mkws-moved-to-github.git diff --git a/src/mkws-widget.js b/src/mkws-widget.js index 3205990..d0a40ca 100644 --- 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() { + // 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 + '"';