From: Kalervo Kujala Date: Sat, 15 Oct 2011 11:20:15 +0000 (+0300) Subject: Fix small lint issues. X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=5a3d85bf53341078186d7fda8688efab921e610f;p=pdf.js.git Fix small lint issues. --- diff --git a/charsets.js b/charsets.js index 59fcdf5..7f54ab3 100644 --- a/charsets.js +++ b/charsets.js @@ -1,3 +1,7 @@ +/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ + +'use strict'; var ISOAdobeCharset = [ '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', diff --git a/extensions/firefox/components/pdfContentHandler.js b/extensions/firefox/components/pdfContentHandler.js index 8799240..9186bfd 100644 --- a/extensions/firefox/components/pdfContentHandler.js +++ b/extensions/firefox/components/pdfContentHandler.js @@ -131,8 +131,7 @@ pdfContentHandler.prototype = { throw Cr.NS_ERROR_WONT_HANDLE_CONTENT; let window = null; - let callbacks = aRequest.notificationCallbacks ? - aRequest.notificationCallbacks : + let callbacks = aRequest.notificationCallbacks || aRequest.loadGroup.notificationCallbacks; if (!callbacks) return;