MCPcopy Create free account
hub / github.com/TruthHun/BookStack / splitCallback

Function splitCallback

static/editor.md/lib/codemirror/addon/mode/loadmode.js:15–18  ·  view source on GitHub ↗
(cont, n)

Source from the content-addressed store, hash-verified

13
14 var loading = {};
15 function splitCallback(cont, n) {
16 var countDown = n;
17 return function() { if (--countDown == 0) cont(); };
18 }
19 function ensureDeps(mode, cont) {
20 var deps = CodeMirror.modes[mode].dependencies;
21 if (!deps) return cont();

Callers 1

ensureDepsFunction · 0.85

Calls 1

contFunction · 0.50

Tested by

no test coverage detected