Merge pull request #5119 from timvandermeij/strict-equalities-other

Use strict equalities in make.js, external/* and extensions/*
This commit is contained in:
Jonas Jenwald 2014-08-01 22:55:55 +02:00
commit 2cd49b52f7
4 changed files with 4 additions and 4 deletions

View File

@ -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 &&

View File

@ -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;

View File

@ -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;

View File

@ -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);