[Client] Refactor: Improve readability

This commit is contained in:
syuilo 2017-02-19 08:09:55 +09:00
parent 725c008966
commit 7b2563ffa3

View File

@ -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);
}
/**