From 9fd7ea29940a24c62757ca18ddf93a69fc57f25c Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Sun, 30 Apr 2017 20:35:00 +0530 Subject: [PATCH] eslint fixes. --- src/script.js | 2 +- src/utils.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/script.js b/src/script.js index 71a373f..678e38c 100644 --- a/src/script.js +++ b/src/script.js @@ -1272,7 +1272,7 @@ runBtn, searchInput scope.onSearchInputChange = function (e) { const text = e.target.value; let el; - for (let [itemId, item] of Object.entries(savedItems)) { + for (const [itemId, item] of Object.entries(savedItems)) { el = $(`#js-saved-items-pane [data-item-id=${itemId}]`); if (item.title.toLowerCase().indexOf(text) === -1) { el.classList.add('hide'); diff --git a/src/utils.js b/src/utils.js index 0fbd212..5eb6440 100644 --- a/src/utils.js +++ b/src/utils.js @@ -2,7 +2,7 @@ window.DEBUG = document.cookie.indexOf('wmdebug') > -1; window.$ = document.querySelector.bind(document); - window.$all = (selector) => [...document.querySelectorAll(selector)] ; + window.$all = (selector) => [...document.querySelectorAll(selector)]; var alphaNum = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; /** @@ -18,6 +18,7 @@ var index = siblings.indexOf(this); return siblings[index + 1]; }; + /* * @param Selector that should match for next siblings * @return element Next element that mathes `selector`