diff --git a/src/lib/viewers/doc/DocFindBar.js b/src/lib/viewers/doc/DocFindBar.js index e0f43b444..48fb47736 100644 --- a/src/lib/viewers/doc/DocFindBar.js +++ b/src/lib/viewers/doc/DocFindBar.js @@ -40,6 +40,7 @@ class DocFindBar extends EventEmitter { this.barKeyDownHandler = this.barKeyDownHandler.bind(this); this.findNextHandler = this.findNextHandler.bind(this); this.findPreviousHandler = this.findPreviousHandler.bind(this); + this.close = this.close.bind(this); // overriding some find controller methods to update match count this.findController.updateUIState = this.updateUIState.bind(this);