Lint syntax fixes.

This commit is contained in:
Pimm Hogeling 2012-08-31 15:51:31 +02:00
parent 0fbbc5a840
commit 080ab94a0d
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -13,7 +13,8 @@ function MessageHandler(name, comObj) {
ah['console_log'] = [function ahConsoleLog(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) {
ah['console_error'] = [function ahConsoleError(data) {
globalScope['console'].error.apply(null, data);