summaryrefslogtreecommitdiff
path: root/js/PluginHost.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/PluginHost.js')
-rw-r--r--js/PluginHost.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/PluginHost.js b/js/PluginHost.js
index a41694f34..8e5ff32ec 100644
--- a/js/PluginHost.js
+++ b/js/PluginHost.js
@@ -1,6 +1,6 @@
// based on http://www.velvetcache.org/2010/08/19/a-simple-javascript-hooks-system
-const PluginHost = {
+PluginHost = {
HOOK_ARTICLE_RENDERED: 1,
HOOK_ARTICLE_RENDERED_CDM: 2,
HOOK_ARTICLE_SET_ACTIVE: 3,
@@ -19,10 +19,10 @@ const PluginHost = {
this.hooks[name].push(callback);
},
run: function (name, args) {
- console.warn('PluginHost::run ' + name);
+ //console.warn('PluginHost::run ' + name);
if (typeof(this.hooks[name]) != 'undefined')
- 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](args)) break;
}
};