diff options
Diffstat (limited to 'ext/mixed/js/display.js')
| -rw-r--r-- | ext/mixed/js/display.js | 8 | 
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index ea30030c..509683a6 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -82,7 +82,7 @@ class Display extends EventDispatcher {          this._queryParserVisibleOverride = null;          this._queryParserContainer = document.querySelector('#query-parser-container');          this._queryParser = new QueryParser({ -            getOptionsContext: this.getOptionsContext.bind(this), +            getSearchContext: this._getSearchContext.bind(this),              documentUtil: this._documentUtil          });          this._mode = null; @@ -1764,7 +1764,7 @@ class Display extends EventDispatcher {          if (this._definitionTextScanner === null) {              this._definitionTextScanner = new TextScanner({                  node: window, -                getOptionsContext: this.getOptionsContext.bind(this), +                getSearchContext: this._getSearchContext.bind(this),                  documentUtil: this._documentUtil,                  searchTerms: true,                  searchKanji: false, @@ -1861,6 +1861,10 @@ class Display extends EventDispatcher {          }      } +    _getSearchContext() { +        return {optionsContext: this.getOptionsContext()}; +    } +      _startFrameResize(e) {          if (this._frameResizeToken !== null) { return; }  |