Fix lint.

This commit is contained in:
Brendan Dahl 2012-01-23 17:52:53 -08:00
parent 178b89342a
commit 4d3057aba7
2 changed files with 10 additions and 10 deletions

View File

@ -23,7 +23,7 @@ function log(aMsg) {
const NS_ERROR_WONT_HANDLE_CONTENT = 0x805d0001;
function pdfContentHandler() {
};
}
pdfContentHandler.prototype = {
@ -63,7 +63,7 @@ pdfContentHandler.prototype = {
// nsIStreamListener::onDataAvailable
onDataAvailable: function(aRequest, aContext, aInputStream, aOffset, aCount) {
// Do nothing since all the data loading is handled by the viewer.
log("SANITY CHECK: onDataAvailable SHOULD NOT BE CALLED!");
log('SANITY CHECK: onDataAvailable SHOULD NOT BE CALLED!');
},
// nsIRequestObserver::onStartRequest
@ -72,7 +72,7 @@ pdfContentHandler.prototype = {
aRequest.QueryInterface(Ci.nsIChannel);
// Create a new channel that is viewer loaded as a resource.
var ioService = Cc["@mozilla.org/network/io-service;1"]
var ioService = Cc['@mozilla.org/network/io-service;1']
.getService(Ci.nsIIOService);
var channel = ioService.newChannel(
'resource://pdf.js/web/viewer.html', null, null);

View File

@ -656,7 +656,7 @@ var PDFDoc = (function PDFDocClosure() {
messageHandler.send('test', testObj);
return;
} catch (e) {
warn('The worker has been disabled.')
warn('The worker has been disabled.');
}
}
// Either workers are disabled, not supported or have thrown an exception.