From: Mike Taylor Date: Wed, 28 Jan 2015 11:40:02 +0000 (+0000) Subject: Cleanup towards MKWS-363. X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=699f025fbabc9fffb5f78e9f4f927ccdd9fdb936;p=mkws-moved-to-github.git Cleanup towards MKWS-363. Remove old code to do with conflicting autosearch terms in a single team. These paths are inaccessible since commit ed9584cc29f7be0e35b94faf2e9800d9400598e6. This allows us to stop abusing this.team.config.query as local state. --- diff --git a/src/mkws-widget.js b/src/mkws-widget.js index 0ea1e0f..05e39ca 100644 --- a/src/mkws-widget.js +++ b/src/mkws-widget.js @@ -104,18 +104,6 @@ mkws.makeWidget = function($, team, type, node) { var that = this; var query = this.config.autosearch; if (query) { - var old = this.team.config.query; - if (!old) { - // Stash this for subsequent inspection - this.team.config.query = query; - } else if (old === query) { - this.warn("duplicate autosearch: '" + query + "': ignoring"); - return; - } else { - this.warn("conflicting autosearch: '" + query + "' vs '" + old + "': ignoring"); - return; - } - this.team.queue("ready").subscribe(function() { // Postpone testing for the configuration items: these are not // yet set for Record subclass widgets that fill them in in the