Fix some typos in comments and variable names.

Fix some nits in debugger.js.
This commit is contained in:
gigaherz 2012-08-08 20:26:24 +02:00
parent ea23a42124
commit eaffcfa920
2 changed files with 11 additions and 11 deletions

View file

@ -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;