MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / nodeToRemove

Function nodeToRemove

plugins/UiConfig/media/js/all.js:475–498  ·  view source on GitHub ↗
(vNode, transitions)

Source from the content-addressed store, hash-verified

473 }
474 };
475 var nodeToRemove = function (vNode, transitions) {
476 var domNode = vNode.domNode;
477 if (vNode.properties) {
478 var exitAnimation = vNode.properties.exitAnimation;
479 if (exitAnimation) {
480 domNode.style.pointerEvents = 'none';
481 var removeDomNode = function () {
482 if (domNode.parentNode) {
483 domNode.parentNode.removeChild(domNode);
484 }
485 };
486 if (typeof exitAnimation === 'function') {
487 exitAnimation(domNode, removeDomNode, vNode.properties);
488 return;
489 } else {
490 transitions.exit(vNode.domNode, vNode.properties, exitAnimation, removeDomNode);
491 return;
492 }
493 }
494 }
495 if (domNode.parentNode) {
496 domNode.parentNode.removeChild(domNode);
497 }
498 };
499 var checkDistinguishable = function (childNodes, indexToCheck, parentVNode, operation) {
500 var childNode = childNodes[indexToCheck];
501 if (childNode.vnodeSelector === '') {

Callers 1

updateChildrenFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected