Browse Source

Use strict equalities in make.js, external/* and extensions/*

Tim van der Meij 11 years ago
parent
commit
c29faaa22d
  1. 2
      extensions/chromium/pdfHandler.js
  2. 2
      extensions/firefox/bootstrap.js
  3. 2
      external/builder/builder.js
  4. 2
      make.js

2
extensions/chromium/pdfHandler.js

@ -36,7 +36,7 @@ function isPdfDownloadable(details) {
} }
// Display the PDF viewer regardless of the Content-Disposition header // Display the PDF viewer regardless of the Content-Disposition header
// if the file is displayed in the main frame. // if the file is displayed in the main frame.
if (details.type == 'main_frame') { if (details.type === 'main_frame') {
return false; return false;
} }
var cdHeader = (details.responseHeaders && var cdHeader = (details.responseHeaders &&

2
extensions/firefox/bootstrap.js vendored

@ -145,7 +145,7 @@ function startup(aData, aReason) {
} }
function shutdown(aData, aReason) { function shutdown(aData, aReason) {
if (aReason == APP_SHUTDOWN) { if (aReason === APP_SHUTDOWN) {
return; return;
} }
var ioService = Services.io; var ioService = Services.io;

2
external/builder/builder.js vendored

@ -227,7 +227,7 @@ function getWorkerSrcFiles(filePath) {
try { try {
var files = JSON.parse(match[1].replace(/'/g, '"')); var files = JSON.parse(match[1].replace(/'/g, '"'));
var srcFiles = files.filter(function(name) { var srcFiles = files.filter(function(name) {
return name.indexOf('external') == -1; return name.indexOf('external') === -1;
}); });
var externalSrcFiles = files.filter(function(name) { var externalSrcFiles = files.filter(function(name) {
return name.indexOf('external') > -1; return name.indexOf('external') > -1;

2
make.js

@ -1209,7 +1209,7 @@ target.mozcentralcheck = function() {
echo('Please specify MC_PATH variable'); echo('Please specify MC_PATH variable');
exit(1); exit(1);
} }
if ((mcPath[0] != '/' && mcPath[0] != '~' && mcPath[1] != ':') || if ((mcPath[0] !== '/' && mcPath[0] !== '~' && mcPath[1] !== ':') ||
!test('-d', mcPath)) { !test('-d', mcPath)) {
echo('mozilla-central path is not in absolute form or does not exist.'); echo('mozilla-central path is not in absolute form or does not exist.');
exit(1); exit(1);

Loading…
Cancel
Save