series call in tracemanager

pull/7/head
yann300 8 years ago
parent e77f1a355e
commit c2b3d4c497
  1. 12
      src/trace/traceManager.js

@ -281,4 +281,16 @@ TraceManager.prototype.checkRequestedStep = function (stepIndex) {
return undefined return undefined
} }
TraceManager.prototype.waterfall = function (calls, stepindex, cb) {
var ret = []
var retError = null
for (var call in calls) {
call.apply(this, [stepindex, function (error, result) {
retError = error
ret.push({ error: error, value: result })
}])
}
cb(retError, ret)
}
module.exports = TraceManager module.exports = TraceManager

Loading…
Cancel
Save