* Copies the children of one DOM element to another DOM element
(from, to)
| 1363 | * Copies the children of one DOM element to another DOM element |
| 1364 | */ |
| 1365 | function 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 | |
| 1375 | function morphdom(fromNode, toNode, options) { |
| 1376 | if (!options) { |