MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / _moveBefore

Function _moveBefore

tools/common/_hyperscript.iife.js:3518–3527  ·  view source on GitHub ↗
(parentNode, element, after)

Source from the content-addressed store, hash-verified

3516 }
3517 }
3518 function _moveBefore(parentNode, element, after) {
3519 if (parentNode.moveBefore) {
3520 try {
3521 parentNode.moveBefore(element, after);
3522 return;
3523 } catch (e) {
3524 }
3525 }
3526 parentNode.insertBefore(element, after);
3527 }
3528 function _copyAttributes(destination, source) {
3529 for (var attr of source.attributes) {
3530 if (destination.getAttribute(attr.name) !== attr.value) {

Callers 2

_morphChildrenFunction · 0.70
_removeNodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected