diff options
author | Egil Moeller <egil.moller@freecode.no> | 2012-02-26 00:59:05 +0100 |
---|---|---|
committer | Egil Moeller <egil.moller@freecode.no> | 2012-02-26 00:59:05 +0100 |
commit | 1955bdec9a0f0448e5b04638f0e69ed3b9210f39 (patch) | |
tree | 34db3cd7b0a380afde7ed68d93486fbc58850d60 /available_plugins | |
parent | 2a58a62dcc95185983f74f8946f800f32c04ef24 (diff) | |
download | etherpad-lite-1955bdec9a0f0448e5b04638f0e69ed3b9210f39.zip |
plugins.plugins is now defined while loading hook modules from plugins
Diffstat (limited to 'available_plugins')
-rw-r--r-- | available_plugins/pluginomatic_fintest/otherpart.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/available_plugins/pluginomatic_fintest/otherpart.js b/available_plugins/pluginomatic_fintest/otherpart.js index 9710fa4e..bf9bf1de 100644 --- a/available_plugins/pluginomatic_fintest/otherpart.js +++ b/available_plugins/pluginomatic_fintest/otherpart.js @@ -1,3 +1,6 @@ +test = ep_client_require("/plugins/pluginomatic_fintest/test.js"); +console.log("FOOO:", test.foo); + exports.somehook = function (hook_name, args, cb) { return cb(["otherpart:somehook was here"]); } @@ -7,9 +10,6 @@ exports.morehook = function (hook_name, args, cb) { } exports.expressServer = function (hook_name, args, cb) { - test = ep_client_require("/plugins/pluginomatic_fintest/test.js"); - console.log("FOOO:", test.foo); - args.app.get('/otherpart', function(req, res) { res.send("<em>Abra cadabra</em>"); }); |