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() {
|
||||
let hasAnyMatched = false;
|
||||
for (const option of this.#options) {
|
||||
if (option.isMatches(this.#query.value)) {
|
||||
if (option.isMatched(this.#query.value)) {
|
||||
option.setShown(true);
|
||||
hasAnyMatched = true;
|
||||
} else {
|
||||
@ -951,7 +951,7 @@ class RecurringAccount {
|
||||
* @param query {string} the query term
|
||||
* @return {boolean} true if the option matches, or false otherwise
|
||||
*/
|
||||
isMatches(query) {
|
||||
isMatched(query) {
|
||||
if (query === "") {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user