From fdbd9a816f57082d9160056242ec0e7dd408aa93 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 26 Dec 2014 18:55:06 -0500 Subject: [PATCH] moved comments above method --- src/plugins/hooks.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/hooks.js b/src/plugins/hooks.js index eea9f773c1..63f9126678 100644 --- a/src/plugins/hooks.js +++ b/src/plugins/hooks.js @@ -5,6 +5,12 @@ var winston = require('winston'), module.exports = function(Plugins) { + /* + `data` is an object consisting of (* is required): + `data.hook`*, the name of the NodeBB hook + `data.method`*, the method called in that plugin + `data.priority`, the relative priority of the method when it is eventually called (default: 10) + */ Plugins.registerHook = function(id, data, callback) { function register() { Plugins.loadedHooks[data.hook] = Plugins.loadedHooks[data.hook] || []; @@ -14,12 +20,6 @@ module.exports = function(Plugins) { callback(); } } - /* - `data` is an object consisting of (* is required): - `data.hook`*, the name of the NodeBB hook - `data.method`*, the method called in that plugin - `data.priority`, the relative priority of the method when it is eventually called (default: 10) - */ var method;