1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

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

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