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

Function run

blockcode/code/menu.js:18–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 }
17
18 function run(){
19 if (scriptDirty){
20 scriptDirty = false;
21 Block.trigger('beforeRun', script);
22 var blocks = [].slice.call(document.querySelectorAll('.script > .block'));
23 Block.run(blocks);
24 Block.trigger('afterRun', script);
25 }else{
26 Block.trigger('everyFrame', script);
27 }
28 requestAnimationFrame(run);
29 }
30 requestAnimationFrame(run);
31
32 function runEach(evt){

Callers

nothing calls this directly

Calls 2

triggerMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected