1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 15:48:00 +01:00

Remove some trailing commas.

This commit is contained in:
Doug Kearns
2009-08-10 02:21:47 +10:00
parent ab6eaeff29
commit b6d3f7ef99
2 changed files with 4 additions and 4 deletions

View File

@@ -90,7 +90,7 @@ function Browser() //{{{
"boolean", false, "boolean", false,
{ {
setter: function (value) services.get("privateBrowsing").privateBrowsingEnabled = value, setter: function (value) services.get("privateBrowsing").privateBrowsingEnabled = value,
getter: function () services.get("privateBrowsing").privateBrowsingEnabled, getter: function () services.get("privateBrowsing").privateBrowsingEnabled
}); });
let services = modules.services; // Storage objects are global to all windows, 'modules' isn't. let services = modules.services; // Storage objects are global to all windows, 'modules' isn't.
storage.newObject("private-mode", function () { storage.newObject("private-mode", function () {
@@ -116,7 +116,7 @@ function Browser() //{{{
services.get("observer").removeObserver(this, "quit-application"); services.get("observer").removeObserver(this, "quit-application");
services.get("observer").removeObserver(this, "private-browsing"); services.get("observer").removeObserver(this, "private-browsing");
} }
}, }
}).init(); }).init();
}, false); }, false);
storage.addObserver("private-mode", storage.addObserver("private-mode",

View File

@@ -420,7 +420,7 @@ const util = { //{{{
* @param {number} max The maximum constraint. * @param {number} max The maximum constraint.
* @returns {number} * @returns {number}
*/ */
constrain: function constrain(value, min, max) Math.min(Math.max(min, value), max), constrain: function constrain(value, min, max) Math.min(Math.max(min, value), max)
}, },
/** /**
@@ -742,7 +742,7 @@ util.Array = function Array_(ary) {
return res; return res;
}, },
concat: function () [].concat.apply(this.__proto__, arguments), concat: function () [].concat.apply(this.__proto__, arguments),
map: function () this.__noSuchMethod__("map", Array.slice(arguments)), map: function () this.__noSuchMethod__("map", Array.slice(arguments))
}; };
return obj; return obj;
} }