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

Lint errors

This commit is contained in:
Yury Delendik 2012-05-11 15:18:46 -05:00
parent 5ca12d549e
commit 7d648cfa13

View file

@ -60,9 +60,9 @@ function getDOMWindow(aChannel) {
} }
function getLocalizedStrings(path) { function getLocalizedStrings(path) {
var stringBundle = Cc["@mozilla.org/intl/stringbundle;1"]. var stringBundle = Cc['@mozilla.org/intl/stringbundle;1'].
getService(Ci.nsIStringBundleService). getService(Ci.nsIStringBundleService).
createBundle("chrome://pdfviewer/locale/" + path); createBundle('chrome://pdfviewer/locale/' + path);
var map = {}; var map = {};
var enumerator = stringBundle.getSimpleEnumeration(); var enumerator = stringBundle.getSimpleEnumeration();
@ -142,7 +142,7 @@ ChromeActions.prototype = {
this.localizedStrings = getLocalizedStrings('viewer.properties'); this.localizedStrings = getLocalizedStrings('viewer.properties');
var result = this.localizedStrings[data]; var result = this.localizedStrings[data];
return JSON.stringify(result || null) return JSON.stringify(result || null);
} catch (e) { } catch (e) {
log('Unable to retrive localized strings: ' + e); log('Unable to retrive localized strings: ' + e);
return 'null'; return 'null';