Renamed the isMatches method to isMatched in the JavaScript RecurringAccount class.
This commit is contained in:
parent
a4ab8a761c
commit
b4d390c33a
@ -854,7 +854,7 @@ class RecurringAccountSelector {
|
|||||||
#filterOptions() {
|
#filterOptions() {
|
||||||
let hasAnyMatched = false;
|
let hasAnyMatched = false;
|
||||||
for (const option of this.#options) {
|
for (const option of this.#options) {
|
||||||
if (option.isMatches(this.#query.value)) {
|
if (option.isMatched(this.#query.value)) {
|
||||||
option.setShown(true);
|
option.setShown(true);
|
||||||
hasAnyMatched = true;
|
hasAnyMatched = true;
|
||||||
} else {
|
} else {
|
||||||
@ -951,7 +951,7 @@ class RecurringAccount {
|
|||||||
* @param query {string} the query term
|
* @param query {string} the query term
|
||||||
* @return {boolean} true if the option matches, or false otherwise
|
* @return {boolean} true if the option matches, or false otherwise
|
||||||
*/
|
*/
|
||||||
isMatches(query) {
|
isMatched(query) {
|
||||||
if (query === "") {
|
if (query === "") {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user