nav tabs on admin dashboard

This commit is contained in:
2019-03-07 00:20:34 -06:00
parent f73d6ae228
commit e4f473f376
11661 changed files with 216240 additions and 1544253 deletions

View File

@@ -4,7 +4,7 @@
*/
"use strict";
const asyncLib = require("async");
const asyncLib = require("neo-async");
class MultiWatching {
constructor(watchings, compiler) {
@@ -13,19 +13,25 @@ class MultiWatching {
}
invalidate() {
this.watchings.forEach((watching) => watching.invalidate());
for (const watching of this.watchings) {
watching.invalidate();
}
}
close(callback) {
if(callback === undefined) callback = () => { /*do nothing*/ };
asyncLib.forEach(this.watchings, (watching, finishedCallback) => {
watching.close(finishedCallback);
}, err => {
this.compiler.applyPlugins("watch-close");
callback(err);
});
asyncLib.forEach(
this.watchings,
(watching, finishedCallback) => {
watching.close(finishedCallback);
},
err => {
this.compiler.hooks.watchClose.call();
if (typeof callback === "function") {
this.compiler.running = false;
callback(err);
}
}
);
}
}