MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / appendChildren

Function appendChildren

plugins/UiPluginManager/media/js/all.js:249–263  ·  view source on GitHub ↗
(parentSelector, insertions, main)

Source from the content-addressed store, hash-verified

247 };
248 };
249 var appendChildren = function (parentSelector, insertions, main) {
250 for (var i = 0; i < insertions.length; i++) {
251 var item = insertions[i];
252 if (Array.isArray(item)) {
253 appendChildren(parentSelector, item, main);
254 } else {
255 if (item !== null && item !== undefined) {
256 if (!item.hasOwnProperty('vnodeSelector')) {
257 item = toTextVNode(item);
258 }
259 main.push(item);
260 }
261 }
262 }
263 };
264 // Render helper functions
265 var missingTransition = function () {
266 throw new Error('Provide a transitions object to the projectionOptions to do animations');

Callers 1

all.jsFile · 0.70

Calls 1

toTextVNodeFunction · 0.70

Tested by

no test coverage detected