MCPcopy
hub / github.com/aosabook/500lines / runEach

Function runEach

blockcode/code/menu.js:32–39  ·  view source on GitHub ↗
(evt)

Source from the content-addressed store, hash-verified

30 requestAnimationFrame(run);
31
32 function runEach(evt){
33 var elem = evt.target;
34 if (!matches(elem, '.script .block')) return;
35 if (elem.dataset.name === 'Define block') return;
36 elem.classList.add('running');
37 scriptRegistry[elem.dataset.name](elem);
38 elem.classList.remove('running');
39 }
40
41 function repeat(block){
42 var count = Block.value(block);

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected