1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-05-16 23:30:08 +02:00

eslint fixes.

This commit is contained in:
Kushagra Gour 2017-04-30 20:35:00 +05:30
parent b6e463ba4c
commit 9fd7ea2994
2 changed files with 3 additions and 2 deletions

@ -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');

@ -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`