mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-16 05:20:24 +01:00
minor refactor
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user