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

Function moveChildren

plugins/Sidebar/media/all.js:1365–1373  ·  view source on GitHub ↗

* Copies the children of one DOM element to another DOM element

(from, to)

Source from the content-addressed store, hash-verified

1363 * Copies the children of one DOM element to another DOM element
1364 */
1365function moveChildren(from, to) {
1366 var curChild = from.firstChild;
1367 while(curChild) {
1368 var nextChild = curChild.nextSibling;
1369 to.appendChild(curChild);
1370 curChild = nextChild;
1371 }
1372 return to;
1373}
1374
1375function morphdom(fromNode, toNode, options) {
1376 if (!options) {

Callers 1

morphdomFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected