MCPcopy Create free account
hub / github.com/ampproject/amphtml / removeChildren

Function removeChildren

third_party/subscriptions-project/swg.js:3731–3733  ·  view source on GitHub ↗

* Removes all children from the parent element. * @param {!Element} parent

(parent)

Source from the content-addressed store, hash-verified

3729 * @param {!Element} parent
3730 */
3731function removeChildren(parent) {
3732 parent.textContent = '';
3733}
3734
3735/**
3736 * Injects the provided styles in the HEAD section of the document.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected