MCPcopy Create free account
hub / github.com/chambaz/responsive-comments / insertComment

Function insertComment

responsive-comments.js:133–136  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

131
132 // insert commented content into DOM, mark as complete and trigger event
133 function insertComment(index) {
134 this.element.insertAdjacentHTML(this.insert, this.element.childNodes[index].textContent);
135 dispatchEvent.apply(this);
136 }
137
138 // dispatch CustomEvent if supported with media query and insert type detail
139 function dispatchEvent() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected