From 705e1bb123f7f6391c03cec8ce759c8f4b8a153d Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Tue, 7 Aug 2012 16:56:30 -0700 Subject: [PATCH] Fix js.py module loading to use PluginLoader. Fixes issue where js.py wasn't initializing Plugins with an entry_point argument after the entry_point property was added. --- r2/r2/lib/js.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/r2/r2/lib/js.py b/r2/r2/lib/js.py index b9c08cd4c..781745d2f 100755 --- a/r2/r2/lib/js.py +++ b/r2/r2/lib/js.py @@ -321,9 +321,8 @@ def use(*names): def load_plugin_modules(): from r2.lib.plugin import PluginLoader - for plugin in PluginLoader.available_plugins(): - plugin_cls = plugin.load() - plugin_cls().add_js(module) + for plugin in PluginLoader(): + plugin.add_js(module) commands = {} def build_command(fn):