mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 23:33:09 +02:00
[Client] Refactor: Improve readability
This commit is contained in:
parent
5e5986f5f5
commit
337589477a
1 changed files with 6 additions and 4 deletions
|
@ -10,12 +10,14 @@ class Autocomplete {
|
||||||
* 対象のテキストエリアを与えてインスタンスを初期化します。
|
* 対象のテキストエリアを与えてインスタンスを初期化します。
|
||||||
*/
|
*/
|
||||||
constructor(textarea) {
|
constructor(textarea) {
|
||||||
|
// BIND ---------------------------------
|
||||||
|
this.onInput = this.onInput.bind(this);
|
||||||
|
this.complete = this.complete.bind(this);
|
||||||
|
this.close = this.close.bind(this);
|
||||||
|
// --------------------------------------
|
||||||
|
|
||||||
this.suggestion = null;
|
this.suggestion = null;
|
||||||
this.textarea = textarea;
|
this.textarea = textarea;
|
||||||
|
|
||||||
this.onInput = this.onInput.bind(this);
|
|
||||||
this.complete = this.complete.bind(this);
|
|
||||||
this.close = this.close.bind(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue