mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-16 21:40:23 +01:00
minor refactor
This commit is contained in:
@@ -30,11 +30,15 @@ var async = require('async'),
|
|||||||
};
|
};
|
||||||
|
|
||||||
Meta.reload = function(callback) {
|
Meta.reload = function(callback) {
|
||||||
plugins.reload(function() {
|
async.series([
|
||||||
|
async.apply(plugins.reload),
|
||||||
|
function(next) {
|
||||||
async.parallel([
|
async.parallel([
|
||||||
async.apply(Meta.js.minify, false),
|
async.apply(Meta.js.minify, false),
|
||||||
async.apply(Meta.css.minify),
|
async.apply(Meta.css.minify),
|
||||||
async.apply(Meta.templates.compile)
|
async.apply(Meta.templates.compile)
|
||||||
|
], next);
|
||||||
|
}
|
||||||
], function(err) {
|
], function(err) {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
emitter.emit('nodebb:ready');
|
emitter.emit('nodebb:ready');
|
||||||
@@ -42,7 +46,6 @@ var async = require('async'),
|
|||||||
|
|
||||||
if (callback) callback.apply(null, arguments);
|
if (callback) callback.apply(null, arguments);
|
||||||
});
|
});
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Meta.restart = function() {
|
Meta.restart = function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user