minor refactor

v1.18.x
Julian Lam 11 years ago
parent 803a2436de
commit c32fdabc43

@ -30,11 +30,15 @@ var async = require('async'),
};
Meta.reload = function(callback) {
plugins.reload(function() {
async.series([
async.apply(plugins.reload),
function(next) {
async.parallel([
async.apply(Meta.js.minify, false),
async.apply(Meta.css.minify),
async.apply(Meta.templates.compile)
], next);
}
], function(err) {
if (!err) {
emitter.emit('nodebb:ready');
@ -42,7 +46,6 @@ var async = require('async'),
if (callback) callback.apply(null, arguments);
});
});
};
Meta.restart = function() {

Loading…
Cancel
Save