MCPcopy Create free account
hub / github.com/marijnh/Eloquent-JavaScript / clear

Method clear

src/client/sandbox.mjs:470–474  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

468 constructor(div) { this.div = div }
469
470 clear() {
471 let clone = this.div.cloneNode(false)
472 this.div.parentNode.replaceChild(clone, this.div)
473 this.div = clone
474 }
475
476 get empty() {
477 return !this.div.firstChild

Callers 3

selectContextMethod · 0.80
runCodeMethod · 0.80
runCodeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected