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

Function blockUnits

blockcode/code/blocks.js:29–33  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

27 }
28
29 function blockUnits(block){
30 if (block.children.length > 1 && block.lastChild.nodeType === Node.TEXT_NODE && block.lastChild.textContent){
31 return block.lastChild.textContent.slice(1);
32 }
33 }
34
35 function blockScript(block){
36 var script = [block.dataset.name];

Callers 1

blockScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected