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

Function ondata

MathBox/mathbox-bundle.js:47325–47347  ·  view source on GitHub ↗
(chunk)

Source from the content-addressed store, hash-verified

47323 return stream = through(ondata, onend)
47324
47325 function ondata(chunk) {
47326 data = data.concat(chunk.split(''))
47327 length = data.length
47328
47329 while(idx < length && (c = data[idx++])) {
47330 switch(state) {
47331 case READY: state_ready(); break
47332 case ANY_CHILD: state_any_child(); break
47333 case OPERATION: state_op(); break
47334 case ATTR_START: state_attr_start(); break
47335 case ATTR_COMP: state_attr_compare(); break
47336 case ATTR_END: state_attr_end(); break
47337 case PSEUDOCLASS:
47338 case PSEUDOPSEUDO: state_pseudo(); break
47339 case PSEUDOSTART: state_pseudostart(); break
47340 case ID:
47341 case TAG:
47342 case CLASS: state_gather(); break
47343 }
47344 }
47345
47346 data = data.slice(idx)
47347 }
47348
47349 function onend(chunk) {
47350 if(arguments.length) {

Callers 1

onendFunction · 0.70

Calls 9

state_readyFunction · 0.70
state_any_childFunction · 0.70
state_opFunction · 0.70
state_attr_startFunction · 0.70
state_attr_compareFunction · 0.70
state_attr_endFunction · 0.70
state_pseudoFunction · 0.70
state_pseudostartFunction · 0.70
state_gatherFunction · 0.70

Tested by

no test coverage detected