mirror of
https://scm.univ-tours.fr/22107988t/rappaurio-sae501_502.git
synced 2025-09-13 08:15:01 +02:00
Revert "permet l'ajout des frameworks et des routes"
This reverts commit 361112699c
This commit is contained in:
35
app/node_modules/foreachasync/forEachAsync.js
generated
vendored
35
app/node_modules/foreachasync/forEachAsync.js
generated
vendored
@@ -1,35 +0,0 @@
|
||||
/*jshint -W054 */
|
||||
;(function (exports) {
|
||||
'use strict';
|
||||
|
||||
function forEachAsync(arr, fn, thisArg) {
|
||||
var dones = []
|
||||
, index = -1
|
||||
;
|
||||
|
||||
function next(BREAK, result) {
|
||||
index += 1;
|
||||
|
||||
if (index === arr.length || BREAK === forEachAsync.__BREAK) {
|
||||
dones.forEach(function (done) {
|
||||
done.call(thisArg, result);
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
fn.call(thisArg, next, arr[index], index, arr);
|
||||
}
|
||||
|
||||
setTimeout(next, 4);
|
||||
|
||||
return {
|
||||
then: function (_done) {
|
||||
dones.push(_done);
|
||||
return this;
|
||||
}
|
||||
};
|
||||
}
|
||||
forEachAsync.__BREAK = {};
|
||||
|
||||
exports.forEachAsync = forEachAsync;
|
||||
}('undefined' !== typeof exports && exports || new Function('return this')()));
|
Reference in New Issue
Block a user