MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / splitCallback

Function splitCallback

mini-code-edit/cm/lib/util/loadmode.js:5–8  ·  view source on GitHub ↗
(cont, n)

Source from the content-addressed store, hash-verified

3
4 var loading = {};
5 function splitCallback(cont, n) {
6 var countDown = n;
7 return function() { if (--countDown == 0) cont(); }
8 }
9 function ensureDeps(mode, cont) {
10 var deps = CodeMirror.modes[mode].dependencies;
11 if (!deps) return cont();

Callers 1

ensureDepsFunction · 0.85

Calls 1

contFunction · 0.50

Tested by

no test coverage detected