Skip to content
This repository was archived by the owner on Apr 7, 2023. It is now read-only.

Commit 41e93ab

Browse files
author
GHMatti
authored
Renamed variables to something better.
1 parent 34542d9 commit 41e93ab

File tree

1 file changed

+7
-7
lines changed
  • resources/[system]/chat/html

1 file changed

+7
-7
lines changed

resources/[system]/chat/html/App.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ window.APP = {
66
style: CONFIG.style,
77
showInput: false,
88
showWindow: false,
9-
subtrahendSuggestions: [],
10-
minuendSuggestions: [],
9+
backingSuggestions: [],
10+
removedSuggestions: [],
1111
templates: CONFIG.templates,
1212
message: '',
1313
messages: [],
@@ -44,7 +44,7 @@ window.APP = {
4444
},
4545
computed: {
4646
suggestions() {
47-
return this.subtrahendSuggestions.filter((el) => this.minuendSuggestions.indexOf(el.name) <= -1);
47+
return this.backingSuggestions.filter((el) => this.removedSuggestions.indexOf(el.name) <= -1);
4848
},
4949
},
5050
methods: {
@@ -74,14 +74,14 @@ window.APP = {
7474
if (!suggestion.params) {
7575
suggestion.params = []; //TODO Move somewhere else
7676
}
77-
if (this.subtrahendSuggestions.find(a => a.name == suggestion.name)) {
77+
if (this.backingSuggestions.find(a => a.name == suggestion.name)) {
7878
return;
7979
}
80-
this.subtrahendSuggestions.push(suggestion);
80+
this.backingSuggestions.push(suggestion);
8181
},
8282
ON_SUGGESTION_REMOVE({ name }) {
83-
if(this.minuendSuggestions.indexOf(name) <= -1) {
84-
this.minuendSuggestions.push(name);
83+
if(this.removedSuggestions.indexOf(name) <= -1) {
84+
this.removedSuggestions.push(name);
8585
}
8686
},
8787
ON_TEMPLATE_ADD({ template }) {

0 commit comments

Comments
 (0)