mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 17:29:05 +01:00
[Client] Refactor: Improve readability
This commit is contained in:
parent
725c008966
commit
7b2563ffa3
@ -10,12 +10,14 @@ class Autocomplete {
|
|||||||
* 対象のテキストエリアを与えてインスタンスを初期化します。
|
* 対象のテキストエリアを与えてインスタンスを初期化します。
|
||||||
*/
|
*/
|
||||||
constructor(textarea) {
|
constructor(textarea) {
|
||||||
this.suggestion = null;
|
// BIND ---------------------------------
|
||||||
this.textarea = textarea;
|
|
||||||
|
|
||||||
this.onInput = this.onInput.bind(this);
|
this.onInput = this.onInput.bind(this);
|
||||||
this.complete = this.complete.bind(this);
|
this.complete = this.complete.bind(this);
|
||||||
this.close = this.close.bind(this);
|
this.close = this.close.bind(this);
|
||||||
|
// --------------------------------------
|
||||||
|
|
||||||
|
this.suggestion = null;
|
||||||
|
this.textarea = textarea;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user