bpmn-js/tasks/helpers.js
Nico Rehwaldt e3bf356461 chore(project): drop grunt + bundle assets to dist directory
* replace grunt with npm scripts
* copy static assets to dist directory
* build and copy library variants to dist directory

Related to #725
2018-02-02 11:24:00 +01:00

23 lines
267 B
JavaScript

'use strict';
module.exports.asyncSeries = function(fns, done) {
var idx = 0;
function next(err) {
if (err) {
return done(err);
}
var fn = fns[idx++];
if (!fn) {
return done();
} else {
fn(next);
}
}
next();
};