MCPcopy Index your code
hub / github.com/NV/github-live-preview / g

Function g

examples/bundle_github.js:283–309  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

281 b[i] = m
282 }
283 function g() {
284 if (!d.data) return false;
285 var i = {},
286 m = 0;
287 if (!d.url) d.cacheLength = 1;
288 i[""] = [];
289 for (var j = 0, n = d.data.length; j < n; j++) {
290 var l = d.data[j];
291 l = typeof l == "string" ? [l] : l;
292 var k = d.formatItem(l, j + 1, d.data.length);
293 if (k !== false) {
294 var r = k.charAt(0).toLowerCase();
295 i[r] || (i[r] = []);
296 l = {
297 value: k,
298 data: l,
299 result: d.formatResult && d.formatResult(l) || k
300 };
301 i[r].push(l);
302 m++<d.max && i[""].push(l)
303 }
304 }
305 a.each(i, function (u, w) {
306 d.cacheLength++;
307 f(u, w)
308 })
309 }
310 setTimeout(g, 25);
311
312 function h() {

Callers

nothing calls this directly

Calls 1

fFunction · 0.85

Tested by

no test coverage detected