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

Function findIndexOfChild

plugins/UiPluginManager/media/js/all.js:455–465  ·  view source on GitHub ↗
(children, sameAs, start)

Source from the content-addressed store, hash-verified

453 return propertiesUpdated;
454 };
455 var findIndexOfChild = function (children, sameAs, start) {
456 if (sameAs.vnodeSelector !== '') {
457 // Never scan for text-nodes
458 for (var i = start; i < children.length; i++) {
459 if (same(children[i], sameAs)) {
460 return i;
461 }
462 }
463 }
464 return -1;
465 };
466 var nodeAdded = function (vNode, transitions) {
467 if (vNode.properties) {
468 var enterAnimation = vNode.properties.enterAnimation;

Callers 1

updateChildrenFunction · 0.70

Calls 1

sameFunction · 0.70

Tested by

no test coverage detected