From 12e6e377854a9163b322a16f3effe816d0222c67 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 8 Nov 2020 12:35:32 -0500 Subject: Query parser generator refactor (#1006) * Simplify select generation * Refactor text generation * Change optional argument * Remove query-parser-templates.html * Simplify prepare * Simplify preview --- ext/mixed/js/api.js | 4 ---- ext/mixed/js/display.js | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'ext/mixed/js') diff --git a/ext/mixed/js/api.js b/ext/mixed/js/api.js index e826b68b..43db1562 100644 --- a/ext/mixed/js/api.js +++ b/ext/mixed/js/api.js @@ -137,10 +137,6 @@ const api = (() => { return this._invoke('getDisplayTemplatesHtml'); } - getQueryParserTemplatesHtml() { - return this._invoke('getQueryParserTemplatesHtml'); - } - getZoom() { return this._invoke('getZoom'); } diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index 38a441bd..33d8f986 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -164,7 +164,7 @@ class Display extends EventDispatcher { this._updateMode(); this._setInteractive(true); await this._displayGenerator.prepare(); - await this._queryParser.prepare(); + this._queryParser.prepare(); this._history.prepare(); this._history.on('stateChanged', this._onStateChanged.bind(this)); this._queryParser.on('searched', this._onQueryParserSearch.bind(this)); -- cgit v1.2.3