Merge pull request #3607 from Snuffleupagus/issue-3604
Prevent searching during load from breaking the find functionality
This commit is contained in:
commit
7cf8b8d70c
2 changed files with 14 additions and 10 deletions
|
@ -162,8 +162,6 @@ var Settings = (function SettingsClosure() {
|
|||
var cache = new Cache(CACHE_SIZE);
|
||||
var currentPageNumber = 1;
|
||||
|
||||
// TODO: Enable the FindBar *AFTER* the pagesPromise in the load function
|
||||
// got resolved
|
||||
//#include pdf_find_bar.js
|
||||
//#include pdf_find_controller.js
|
||||
//#include pdf_history.js
|
||||
|
@ -941,6 +939,8 @@ var PDFView = {
|
|||
pagePromises.push(pagePromise);
|
||||
}
|
||||
|
||||
PDFFindController.firstPagePromise.resolve();
|
||||
|
||||
PDFJS.Promise.all(pagePromises).then(function(pages) {
|
||||
pagesPromise.resolve(pages);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue