MCPcopy Index your code
hub / github.com/marijnh/Eloquent-JavaScript / closeCode

Function closeCode

src/client/ejs.mjs:234–239  ·  view source on GitHub ↗
(editor)

Source from the content-addressed store, hash-verified

232 }
233
234 function closeCode(editor) {
235 let context = editor.state.facet(contextFacet)
236 if (context.isHTML && context.sandbox) return
237 context.wrap.remove()
238 context.orig.style.display = ""
239 }
240
241 function revertCode(editor) {
242 let context = editor.state.facet(contextFacet)

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected