diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-19 08:09:55 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-19 08:09:55 +0900 |
| commit | 337589477a09550f8b624ee99b98dd40e4f946aa (patch) | |
| tree | 3e2e3c48b99c01adbb387da61d7b75ebdfb72058 /src/web/app/desktop/scripts | |
| parent | [Clinet] Fix bug (diff) | |
| download | misskey-337589477a09550f8b624ee99b98dd40e4f946aa.tar.gz misskey-337589477a09550f8b624ee99b98dd40e4f946aa.tar.bz2 misskey-337589477a09550f8b624ee99b98dd40e4f946aa.zip | |
[Client] Refactor: Improve readability
Diffstat (limited to 'src/web/app/desktop/scripts')
| -rw-r--r-- | src/web/app/desktop/scripts/autocomplete.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/web/app/desktop/scripts/autocomplete.js b/src/web/app/desktop/scripts/autocomplete.js index ce8f960168..86f1ae4b33 100644 --- a/src/web/app/desktop/scripts/autocomplete.js +++ b/src/web/app/desktop/scripts/autocomplete.js @@ -10,12 +10,14 @@ class Autocomplete { * 対象のテキストエリアを与えてインスタンスを初期化します。 */ 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.textarea = textarea; - - this.onInput = this.onInput.bind(this); - this.complete = this.complete.bind(this); - this.close = this.close.bind(this); } /** |