summaryrefslogtreecommitdiff
path: root/src/web/app/desktop/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/app/desktop/scripts')
-rw-r--r--src/web/app/desktop/scripts/autocomplete.js10
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);
}
/**