mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Use anonymous class expressions where possible
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
root.loot.Dialog = factory();
|
||||
}
|
||||
}(this, () => {
|
||||
return class Dialog {
|
||||
return class {
|
||||
static showProgress(text) {
|
||||
const progressDialog = document.getElementById('progressDialog');
|
||||
progressDialog.getElementsByTagName('p')[0].textContent = text;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
root.loot.Filters = factory();
|
||||
}
|
||||
}(this, () => {
|
||||
return class Filters {
|
||||
return class {
|
||||
constructor(l10n) {
|
||||
/* Plugin filters */
|
||||
this.hideMessagelessPlugins = false;
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
root.loot.Game = factory(root.marked);
|
||||
}
|
||||
}(this, (marked) => {
|
||||
return class Game {
|
||||
return class {
|
||||
constructor(obj, l10n) {
|
||||
this.folder = obj.folder || '';
|
||||
this.globalMessages = obj.globalMessages || [];
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
root.loot.Translator = factory(root.Jed, root.jedGettextParser);
|
||||
}
|
||||
}(this, (Jed, jedGettextParser) => {
|
||||
return class Translator {
|
||||
return class {
|
||||
/* Returns a Promise */
|
||||
constructor(locale) {
|
||||
this.locale = locale || 'en';
|
||||
|
||||
Reference in New Issue
Block a user