Browse Source

Lint syntax fixes.

Pimm Hogeling 13 years ago
parent
commit
080ab94a0d
  1. 3
      src/jpx.js
  2. 3
      src/worker.js

3
src/jpx.js

@ -255,7 +255,8 @@ var JpxImage = (function JpxImageClosure() {
cod.resetContextProbabilities || cod.resetContextProbabilities ||
cod.terminationOnEachCodingPass || cod.terminationOnEachCodingPass ||
cod.verticalyStripe || cod.predictableTermination) cod.verticalyStripe || cod.predictableTermination)
throw 'Unsupported COD options: ' + globalScope.JSON.stringify(cod); throw 'Unsupported COD options: ' +
globalScope.JSON.stringify(cod);
if (context.mainHeader) if (context.mainHeader)
context.COD = cod; context.COD = cod;

3
src/worker.js

@ -13,7 +13,8 @@ function MessageHandler(name, comObj) {
ah['console_log'] = [function ahConsoleLog(data) { ah['console_log'] = [function ahConsoleLog(data) {
log.apply(null, data); log.apply(null, data);
}]; }];
// If there's no console available, console_error in the action handler will do nothing. // If there's no console available, console_error in the
// action handler will do nothing.
if ('console' in globalScope) { if ('console' in globalScope) {
ah['console_error'] = [function ahConsoleError(data) { ah['console_error'] = [function ahConsoleError(data) {
globalScope['console'].error.apply(null, data); globalScope['console'].error.apply(null, data);

Loading…
Cancel
Save