MCPcopy Index your code
hub / github.com/dresende/node-orm2 / getNext

Function getNext

lib/ORM.js:408–423  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

406 get: function (cb) {
407 var params = [];
408 var getNext = function () {
409 if (params.length === chains.length) {
410 params.unshift(null);
411 return cb.apply(null, params);
412 }
413
414 chains[params.length].run(function (err, instances) {
415 if (err) {
416 params.unshift(err);
417 return cb.apply(null, params);
418 }
419
420 params.push(instances);
421 return getNext();
422 });
423 };
424
425 getNext();
426

Callers 1

ORM.jsFile · 0.85

Calls 1

runMethod · 0.80

Tested by

no test coverage detected