1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 13:35:56 +00:00

fix various minor issues reported by eslint

This commit is contained in:
Andrew Dolgov
2020-06-04 23:27:22 +03:00
parent 755662a9d7
commit 88027d7a39
20 changed files with 115 additions and 74 deletions

View File

@@ -1,5 +1,7 @@
// based on http://www.velvetcache.org/2010/08/19/a-simple-javascript-hooks-system
/* exported PluginHost */
const PluginHost = {
HOOK_ARTICLE_RENDERED: 1,
HOOK_ARTICLE_RENDERED_CDM: 2,
@@ -31,7 +33,7 @@ const PluginHost = {
}
},
unregister: function (name, callback) {
for (var i = 0; i < this.hooks[name].length; i++)
for (let i = 0; i < this.hooks[name].length; i++)
if (this.hooks[name][i] == callback)
this.hooks[name].splice(i, 1);
}