From 699f025fbabc9fffb5f78e9f4f927ccdd9fdb936 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 28 Jan 2015 11:40:02 +0000 Subject: [PATCH] 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. --- src/mkws-widget.js | 12 ------------ 1 file changed, 12 deletions(-) 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 -- 1.7.10.4