Fix lint warning + turn off worker support

This commit is contained in:
Julian Viereck 2011-11-02 23:00:08 +01:00
parent 51d4a17232
commit 50fe4f55e2
2 changed files with 5 additions and 3 deletions

View File

@ -7,7 +7,7 @@ var globalScope = (typeof window === 'undefined') ? this : window;
var ERRORS = 0, WARNINGS = 1, TODOS = 5;
var verbosity = WARNINGS;
var useWorker = true;
var useWorker = false;
// The global PDFJS object exposes the API
// In production, it will be declared outside a global wrapper

View File

@ -3,7 +3,7 @@
'use strict';
this.onmessage = function(evt) {
function onMessageLoader(evt) {
// Reset the `onmessage` function as it was only set to call
// this function the first time a message is passed to the worker
// but shouldn't get called anytime afterwards.
@ -47,4 +47,6 @@ this.onmessage = function(evt) {
for (var i = 0; i < files.length; i++) {
importScripts(dir + files[i]);
}
}.bind(this);
}
this.onmessage = onMessageLoader.bind(this);