[Pale-Moon] Issue MoonchildProductions/UXP#516 - Remove named function syntax from palemoon/components/preferences.

This commit is contained in:
athenian200 2020-02-06 06:51:58 -06:00 • committed by Roy Tam
commit 0764896876
5 changed files with 18 additions and 18 deletions

View file

@ -10,7 +10,7 @@ var Ci = Components.interfaces;
var gAppManagerDialog = {
_removed: [],
init: function appManager_init() {
init: function () {
this.handlerInfo = window.arguments[0];
var bundle = document.getElementById("appManagerBundle");
@ -44,7 +44,7 @@ var gAppManagerDialog = {
list.selectedIndex = 0;
},
onOK: function appManager_onOK() {
onOK: function () {
if (!this._removed.length) {
// return early to avoid calling the |store| method.
return;
@ -56,11 +56,11 @@ var gAppManagerDialog = {
this.handlerInfo.store();
},
onCancel: function appManager_onCancel() {
onCancel: function () {
// do nothing
},
remove: function appManager_remove() {
remove: function () {
var list = document.getElementById("appList");
this._removed.push(list.selectedItem.app);
var index = list.selectedIndex;
@ -78,7 +78,7 @@ var gAppManagerDialog = {
}
},
onSelect: function appManager_onSelect() {
onSelect: function () {
var list = document.getElementById("appList");
if (!list.selectedItem) {
document.getElementById("remove").disabled = true;