series call in tracemanager

pull/7/head
yann300 8 years ago
parent 02c13f561f
commit cb29cec5ca
  1. 12
      src/trace/traceManager.js

@ -281,4 +281,16 @@ TraceManager.prototype.checkRequestedStep = function (stepIndex) {
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

Loading…
Cancel
Save