From 2b188b9c77aa0351b88fab4582bd65c20b0af12d Mon Sep 17 00:00:00 2001 From: "steffen.wilberg%web.de" Date: Mon, 31 Jul 2006 22:07:00 +0000 Subject: [PATCH] Bug 345599: fix jwalden's whitespace nits and sync from branch. --- browser/components/preferences/privacy.js | 28 +++++++++++------------ 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/browser/components/preferences/privacy.js b/browser/components/preferences/privacy.js index f40477ae1b1..2315c9a3366 100644 --- a/browser/components/preferences/privacy.js +++ b/browser/components/preferences/privacy.js @@ -43,7 +43,7 @@ var gPrivacyPane = { /** * Sets up the UI for the number of days of history to keep, and updates the - label of the "Clear Now..." button. + * label of the "Clear Now..." button. */ init: function () { @@ -131,8 +131,6 @@ var gPrivacyPane = { pref.value = isNaN(uiValue) ? 0 : uiValue; }, - - /** * Converts the value of the browser.download.manager.retention preference * into a Boolean value. "remove on close" and "don't remember" both map @@ -245,19 +243,19 @@ var gPrivacyPane = { /** * Sets the label of the "Clear Now..." button according to the * privacy.sanitize.promptOnSanitize pref. - */ - updateClearNowButtonLabel: function() - { - var prefBranch = Components.classes["@mozilla.org/preferences-service;1"] - .getService(Components.interfaces.nsIPrefBranch); - var clearNowButton = document.getElementById("clearDataNow"); - if (prefBranch.getBoolPref("privacy.sanitize.promptOnSanitize")) - clearNowButton.label = clearNowButton.getAttribute("label1"); // "Clear Now..." - else - clearNowButton.label = clearNowButton.getAttribute("label2"); // "Clear Now" - }, + */ + updateClearNowButtonLabel: function () + { + var prefBranch = Components.classes["@mozilla.org/preferences-service;1"] + .getService(Components.interfaces.nsIPrefBranch); + var clearNowButton = document.getElementById("clearDataNow"); + if (prefBranch.getBoolPref("privacy.sanitize.promptOnSanitize")) + clearNowButton.label = clearNowButton.getAttribute("label1"); // "Clear Now..." + else + clearNowButton.label = clearNowButton.getAttribute("label2"); // "Clear Now" + }, - /** + /** * Displays the Clear Private Data settings dialog. */ showClearPrivateDataSettings: function ()