]> git.parisson.com Git - pdf.js.git/commitdiff
Fix lint warning + turn off worker support
authorJulian Viereck <julian.viereck@gmail.com>
Wed, 2 Nov 2011 22:00:08 +0000 (23:00 +0100)
committerJulian Viereck <julian.viereck@gmail.com>
Wed, 2 Nov 2011 22:00:08 +0000 (23:00 +0100)
src/core.js
src/worker_loader.js

index 5685cdf31122e536918e349f3886f8db9fbfb99f..2bc4c50aa5c82a728846091e5c1f434bdee2116a 100644 (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
index 8eb1da7b2086c050f97f8655ed8d4cbefd78c95b..8d342d116fba5d236652898afb8cabf0f102bf48 100644 (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);