[Basilisk] Issue MoonchildProductions/UXP#516 - Remove named function syntax from basilisk/components/preferences.

This commit is contained in:
athenian200 2020-03-06 10:43:20 -06:00 committed by Roy Tam
commit 7f04845e74
5 changed files with 27 additions and 27 deletions

View file

@ -232,7 +232,7 @@ var gPrivacyPane = {
/**
* Initialize the history mode menulist based on the privacy preferences
*/
initializeHistoryMode: function PPP_initializeHistoryMode()
initializeHistoryMode: function()
{
let mode;
let getVal = aPref => document.getElementById(aPref).value;
@ -252,7 +252,7 @@ var gPrivacyPane = {
/**
* Update the selected pane based on the history mode menulist
*/
updateHistoryModePane: function PPP_updateHistoryModePane()
updateHistoryModePane: function()
{
let selectedIndex = -1;
switch (document.getElementById("historyMode").value) {
@ -273,7 +273,7 @@ var gPrivacyPane = {
* Update the private browsing auto-start pref and the history mode
* micro-management prefs based on the history mode menulist
*/
updateHistoryModePrefs: function PPP_updateHistoryModePrefs()
updateHistoryModePrefs: function()
{
let pref = document.getElementById("browser.privatebrowsing.autostart");
switch (document.getElementById("historyMode").value) {
@ -308,7 +308,7 @@ var gPrivacyPane = {
* Update the privacy micro-management controls based on the
* value of the private browsing auto-start checkbox.
*/
updatePrivacyMicroControls: function PPP_updatePrivacyMicroControls()
updatePrivacyMicroControls: function()
{
if (document.getElementById("historyMode").value == "custom") {
let disabled = this._autoStartPrivateBrowsing =
@ -360,7 +360,7 @@ var gPrivacyPane = {
/**
* Initialize the starting state for the auto-start private browsing mode pref reverter.
*/
initAutoStartPrivateBrowsingReverter: function PPP_initAutoStartPrivateBrowsingReverter()
initAutoStartPrivateBrowsingReverter: function()
{
let mode = document.getElementById("historyMode");
let autoStart = document.getElementById("privateBrowsingAutoStart");
@ -370,7 +370,7 @@ var gPrivacyPane = {
_lastMode: null,
_lastCheckState: null,
updateAutostart: function PPP_updateAutostart() {
updateAutostart: function() {
let mode = document.getElementById("historyMode");
let autoStart = document.getElementById("privateBrowsingAutoStart");
let pref = document.getElementById("browser.privatebrowsing.autostart");