moving pluginRoutes to top of route stack (like others), put app.load hook behind plugins' ready callback

This commit is contained in:
Julian Lam
2014-03-10 21:54:30 -04:00
parent 661dff2f9b
commit ffa42ffea3
3 changed files with 10 additions and 8 deletions

View File

@@ -305,11 +305,11 @@ var fs = require('fs'),
if (callback) {
args.pop();
}
hookList = Plugins.loadedHooks[hook];
if (hookList && Array.isArray(hookList)) {
//if (global.env === 'development') winston.info('[plugins] Firing hook: \'' + hook + '\'');
// if (global.env === 'development') winston.info('[plugins] Firing hook: \'' + hook + '\'');
var hookType = hook.split(':')[0];
switch (hookType) {
case 'filter':