MCPcopy Create free account
hub / github.com/aosabook/500lines / loadExample

Function loadExample

blockcode/code/file.js:68–76  ·  view source on GitHub ↗
(evt)

Source from the content-addressed store, hash-verified

66 }
67
68 function loadExample(evt){
69 var exampleName = evt.target.value;
70 if (exampleName === ''){ return; }
71 clearScript();
72 file.examples[exampleName].forEach(function(block){
73 scriptElem.appendChild(Block.create.apply(null, block));
74 });
75 Menu.runSoon();
76 }
77
78 global.file = {
79 saveLocal: saveLocal,

Callers

nothing calls this directly

Calls 1

clearScriptFunction · 0.85

Tested by

no test coverage detected