Merge pull request #3612 from Snuffleupagus/fix-find-when-loading-new-file

Prevent searching from breaking when opening a new file in the web viewer
This commit is contained in:
Brendan Dahl 2013-08-26 10:44:54 -07:00
commit e9a3ac175c
2 changed files with 8 additions and 0 deletions

View file

@ -827,6 +827,8 @@ var PDFView = {
};
}
PDFFindController.reset();
this.pdfDocument = pdfDocument;
var errorWrapper = document.getElementById('errorWrapper');