1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 18:12:26 +01:00

Replace expression closures (function declarations).

Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
Doug Kearns
2015-05-25 23:59:30 +10:00
parent 5ab1befbf7
commit c0b7c4c35d
31 changed files with 292 additions and 162 deletions

8
common/bootstrap.js vendored
View File

@@ -11,7 +11,9 @@ const global = this;
var { classes: Cc, interfaces: Ci, results: Cr, utils: Cu } = Components;
function module(uri) Cu.import(uri, {});
function module(uri) {
return Cu.import(uri, {});
}
const DEBUG = true;
@@ -316,7 +318,9 @@ function init() {
* Performs necessary migrations after a version change.
*/
function updateVersion() {
function isDev(ver) /^hg|pre$/.test(ver);
function isDev(ver) {
return /^hg|pre$/.test(ver);
}
try {
if (typeof require === "undefined" || addon === addonData)
return;