From e37f8cfa7817bb4d9f7330838542666b74e52b94 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 4 Jun 2020 19:50:13 +0300 Subject: don't use declare() for static objects with no inheritance because apparently it's not actually needed by AMD --- js/PluginHost.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/PluginHost.js') diff --git a/js/PluginHost.js b/js/PluginHost.js index 71596ad31..11f2bd1f1 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 -PluginHost = { +const PluginHost = { HOOK_ARTICLE_RENDERED: 1, HOOK_ARTICLE_RENDERED_CDM: 2, HOOK_ARTICLE_SET_ACTIVE: 3, -- cgit v1.2.3