mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Remove the find bar's dependency on the find controller
Pull request #10100 removed the last usage of the find controller from the find bar, so we can drop the dependency now.
This commit is contained in:
parent
ba172c7d03
commit
7aca53b1a4
2 changed files with 0 additions and 7 deletions
|
@ -369,7 +369,6 @@ let PDFViewerApplication = {
|
|||
|
||||
// TODO: improve `PDFFindBar` constructor parameter passing
|
||||
let findBarConfig = Object.create(appConfig.findBar);
|
||||
findBarConfig.findController = this.findController;
|
||||
findBarConfig.eventBus = eventBus;
|
||||
this.findBar = new PDFFindBar(findBarConfig, this.l10n);
|
||||
|
||||
|
|
|
@ -38,15 +38,9 @@ class PDFFindBar {
|
|||
this.findResultsCount = options.findResultsCount || null;
|
||||
this.findPreviousButton = options.findPreviousButton || null;
|
||||
this.findNextButton = options.findNextButton || null;
|
||||
this.findController = options.findController || null;
|
||||
this.eventBus = options.eventBus;
|
||||
this.l10n = l10n;
|
||||
|
||||
if (this.findController === null) {
|
||||
throw new Error('PDFFindBar cannot be used without a ' +
|
||||
'PDFFindController instance.');
|
||||
}
|
||||
|
||||
// Add event listeners to the DOM elements.
|
||||
this.toggleButton.addEventListener('click', () => {
|
||||
this.toggle();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue