custom asyncSeries() is gone

This commit is contained in:
Johannes Zellner
2020-06-03 23:08:05 +02:00
parent 0410ba51ca
commit eeac846f5a
3 changed files with 8 additions and 24 deletions

View File

@@ -62,22 +62,6 @@ function asyncForEach(items, handler, callback) {
})();
}
function asyncSeries(funcs, callback) {
var cur = 0;
if (funcs.length === 0) return callback();
(function iterator() {
funcs[cur](function (error) {
if (error) return callback(error);
if (cur >= funcs.length-1) return callback();
++cur;
iterator();
});
})();
}
// create main application module
var app = angular.module('Application', ['ngFitText', 'ngRoute', 'ngAnimate', 'ngSanitize', 'angular-md5', 'base64', 'slick', 'ui-notification', 'ui.bootstrap', 'ui.bootstrap-slider', 'ngTld', 'ui.multiselect']);