From 88027d7a3913872c16f42cb9d9d713aa994eb034 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 4 Jun 2020 23:27:22 +0300 Subject: fix various minor issues reported by eslint --- js/Headlines.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'js/Headlines.js') diff --git a/js/Headlines.js b/js/Headlines.js index 7a5a7ee94..1e6fc4268 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -1,5 +1,8 @@ 'use strict'; -/* global __, ngettext */ + +/* global __, ngettext, Article, App, escapeHtml */ +/* global xhrPost, xhrJson, dojo, dijit, PluginHost, Notify, $$, Feeds */ +/* global CommonDialogs */ const Headlines = { vgroup_last_feed: undefined, @@ -319,7 +322,7 @@ const Headlines = { if (App.getInitParam("cdm_auto_catchup")) { - let rows = $$("#headlines-frame > div[id*=RROW][class*=Unread]"); + const rows = $$("#headlines-frame > div[id*=RROW][class*=Unread]"); for (let i = 0; i < rows.length; i++) { const row = rows[i]; @@ -1185,8 +1188,8 @@ const Headlines = { if (App.getInitParam("confirm_feed_catchup") != 1 || confirm(msg)) { - for (var i = 0; i < ids_to_mark.length; i++) { - var e = $("RROW-" + ids_to_mark[i]); + for (let i = 0; i < ids_to_mark.length; i++) { + const e = $("RROW-" + ids_to_mark[i]); e.removeClassName("Unread"); } } @@ -1231,14 +1234,14 @@ const Headlines = { menu.addChild(new dijit.MenuItem({ label: __("Open original article"), - onClick: function (event) { + onClick: function (/* event */) { Article.openInNewWindow(this.getParent().currentTarget.getAttribute("data-article-id")); } })); menu.addChild(new dijit.MenuItem({ label: __("Display article URL"), - onClick: function (event) { + onClick: function (/* event */) { Article.displayUrl(this.getParent().currentTarget.getAttribute("data-article-id")); } })); @@ -1387,7 +1390,7 @@ const Headlines = { menu.addChild(new dijit.MenuItem({ label: __("Select articles in group"), - onClick: function (event) { + onClick: function (/* event */) { Headlines.select("all", "#headlines-frame > div[id*=RROW]" + "[data-orig-feed-id='" + this.getParent().currentTarget.getAttribute("data-feed-id") + "']"); -- cgit v1.2.3