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/PluginHost.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'js/PluginHost.js') 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); } -- cgit v1.2.3-54-g00ecf