mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Fix some typos in comments and variable names.
Fix some nits in debugger.js.
This commit is contained in:
parent
ea23a42124
commit
eaffcfa920
2 changed files with 11 additions and 11 deletions
|
@ -431,7 +431,7 @@ var PDFView = {
|
|||
// }
|
||||
// );
|
||||
// },
|
||||
// noData // Error ocurred try downloading with just the url.
|
||||
// noData // Error occurred try downloading with just the url.
|
||||
// );
|
||||
//#endif
|
||||
},
|
||||
|
@ -798,14 +798,14 @@ var PDFView = {
|
|||
search: function pdfViewStartSearch() {
|
||||
// Limit this function to run every <SEARCH_TIMEOUT>ms.
|
||||
var SEARCH_TIMEOUT = 250;
|
||||
var lastSeach = this.lastSearch;
|
||||
var lastSearch = this.lastSearch;
|
||||
var now = Date.now();
|
||||
if (lastSeach && (now - lastSeach) < SEARCH_TIMEOUT) {
|
||||
if (lastSearch && (now - lastSearch) < SEARCH_TIMEOUT) {
|
||||
if (!this.searchTimer) {
|
||||
this.searchTimer = setTimeout(function resumeSearch() {
|
||||
PDFView.search();
|
||||
},
|
||||
SEARCH_TIMEOUT - (now - lastSeach)
|
||||
SEARCH_TIMEOUT - (now - lastSearch)
|
||||
);
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue