MCPcopy
hub / github.com/tmcw/big / c

Function c

lib/highlight.js:44–54  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

42 }), r;
43 }
44 function c(e) {
45 var t = [];
46 return (function a(e, n) {
47 for (
48 var i = e.firstChild;
49 i;
50 i = i.nextSibling
51 ) 3 === i.nodeType ? (n += i.nodeValue.length) : 1 === i.nodeType && (t.push({ event: 'start', offset: n, node: i }), (n = a(i, n)), r(i).match(/br|hr|img|input/) || t.push({ event: 'stop', offset: n, node: i }));
52 return n;
53 })(e, 0), t;
54 }
55 function o(e, a, n) {
56 function i() {
57 return e.length && a.length

Callers 3

aFunction · 0.85
hFunction · 0.85
fFunction · 0.85

Calls 2

aFunction · 0.85
rFunction · 0.85

Tested by

no test coverage detected