mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-15 13:00:21 +01:00
minor refactor
This commit is contained in:
25
src/meta.js
25
src/meta.js
@@ -30,18 +30,21 @@ var async = require('async'),
|
||||
};
|
||||
|
||||
Meta.reload = function(callback) {
|
||||
plugins.reload(function() {
|
||||
async.parallel([
|
||||
async.apply(Meta.js.minify, false),
|
||||
async.apply(Meta.css.minify),
|
||||
async.apply(Meta.templates.compile)
|
||||
], function(err) {
|
||||
if (!err) {
|
||||
emitter.emit('nodebb:ready');
|
||||
}
|
||||
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');
|
||||
}
|
||||
|
||||
if (callback) callback.apply(null, arguments);
|
||||
});
|
||||
if (callback) callback.apply(null, arguments);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user