diff options
author | Andrew Dolgov <[email protected]> | 2020-06-04 23:27:22 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-06-04 23:27:22 +0300 |
commit | 88027d7a3913872c16f42cb9d9d713aa994eb034 (patch) | |
tree | 1fe058c07c0e5d532c063bd0e4e7b69a47096ae2 /js/PluginHost.js | |
parent | 755662a9d756fffa225343da847de2a36f464c7b (diff) |
fix various minor issues reported by eslint
Diffstat (limited to 'js/PluginHost.js')
-rw-r--r-- | js/PluginHost.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/PluginHost.js b/js/PluginHost.js index 11f2bd1f1..caee79d58 100644 --- a/js/PluginHost.js +++ b/js/PluginHost.js @@ -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); } |