MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / _moveBefore

Function _moveBefore

src/core/runtime/morph.js:187–192  ·  view source on GitHub ↗
(parentNode, element, after)

Source from the content-addressed store, hash-verified

185}
186
187function _moveBefore(parentNode, element, after) {
188 if (parentNode.moveBefore) {
189 try { parentNode.moveBefore(element, after); return; } catch (e) {}
190 }
191 parentNode.insertBefore(element, after);
192}
193
194function _copyAttributes(destination, source) {
195 for (var attr of source.attributes) {

Callers 2

_morphChildrenFunction · 0.70
_removeNodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected