MCPcopy Create free account
hub / github.com/dresende/node-orm2 / autoFetchDone

Function autoFetchDone

lib/Associations/Many.js:120–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118
119 var pending = associations.length;
120 var autoFetchDone = function autoFetchDone() {
121 pending -= 1;
122
123 if (pending === 0) {
124 return cb();
125 }
126 };
127
128 for (var i = 0; i < associations.length; i++) {
129 autoFetchInstance(Instance, associations[i], opts, autoFetchDone);

Callers

nothing calls this directly

Calls 1

cbFunction · 0.85

Tested by

no test coverage detected