1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-09 16:06:21 +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

View File

@ -1272,7 +1272,7 @@ runBtn, searchInput
scope.onSearchInputChange = function (e) { scope.onSearchInputChange = function (e) {
const text = e.target.value; const text = e.target.value;
let el; 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}]`); el = $(`#js-saved-items-pane [data-item-id=${itemId}]`);
if (item.title.toLowerCase().indexOf(text) === -1) { if (item.title.toLowerCase().indexOf(text) === -1) {
el.classList.add('hide'); el.classList.add('hide');

View File

@ -18,6 +18,7 @@
var index = siblings.indexOf(this); var index = siblings.indexOf(this);
return siblings[index + 1]; return siblings[index + 1];
}; };
/* /*
* @param Selector that should match for next siblings * @param Selector that should match for next siblings
* @return element Next element that mathes `selector` * @return element Next element that mathes `selector`