From 2d9dd2ea30ccf18add1ec1fcf715699345564901 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 19 Feb 2017 07:52:06 +0900 Subject: [PATCH] [Client] Refactor: Better variable name --- src/web/app/desktop/scripts/autocomplete.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/web/app/desktop/scripts/autocomplete.js b/src/web/app/desktop/scripts/autocomplete.js index d32d3d1a73..ce8f960168 100644 --- a/src/web/app/desktop/scripts/autocomplete.js +++ b/src/web/app/desktop/scripts/autocomplete.js @@ -61,7 +61,7 @@ class Autocomplete { this.close(); // サジェスト要素作成 - const suggestion = document.createElement('mk-autocomplete-suggestion'); + const tag = document.createElement('mk-autocomplete-suggestion'); // ~ サジェストを表示すべき位置を計算 ~ @@ -72,11 +72,11 @@ class Autocomplete { const x = rect.left + window.pageXOffset + caretPosition.left; const y = rect.top + window.pageYOffset + caretPosition.top; - suggestion.style.left = x + 'px'; - suggestion.style.top = y + 'px'; + tag.style.left = x + 'px'; + tag.style.top = y + 'px'; // 要素追加 - const el = document.body.appendChild(suggestion); + const el = document.body.appendChild(tag); // マウント this.suggestion = riot.mount(el, {