diff --git a/common/content/browser.js b/common/content/browser.js index 06931ea5..36d76571 100755 --- a/common/content/browser.js +++ b/common/content/browser.js @@ -90,7 +90,7 @@ function Browser() //{{{ "boolean", false, { 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. storage.newObject("private-mode", function () { @@ -116,7 +116,7 @@ function Browser() //{{{ services.get("observer").removeObserver(this, "quit-application"); services.get("observer").removeObserver(this, "private-browsing"); } - }, + } }).init(); }, false); storage.addObserver("private-mode", diff --git a/common/content/util.js b/common/content/util.js index 8f2024ca..64c884f1 100755 --- a/common/content/util.js +++ b/common/content/util.js @@ -420,7 +420,7 @@ const util = { //{{{ * @param {number} max The maximum constraint. * @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; }, 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; }