MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / recurse

Function recurse

MathBox/mathbox-bundle.js:42195–42208  ·  view source on GitHub ↗
(list, out, level)

Source from the content-addressed store, hash-verified

42193
42194 // Look up aliases recursively
42195 function recurse(list, out, level) {
42196 if (level >= 256) throw "Plug-in alias recursion detected.";
42197 list = _.filter(list, filter);
42198 _.each(list, function (name) {
42199 var alias = aliases[name];
42200 if (!alias) {
42201 out.push(name);
42202 }
42203 else {
42204 out = out.concat(recurse(alias, [], level + 1));
42205 }
42206 });
42207 return out;
42208 }
42209
42210 return recurse(plugins, [], 0);
42211 },

Callers 2

mathbox-core.jsFile · 0.85
mathbox-bundle.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected