MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / append

Function append

lib/web/renderjson.js:62–70  ·  view source on GitHub ↗
(/* el, ... */)

Source from the content-addressed store, hash-verified

60 return spans;
61 };
62 var append = function(/* el, ... */) {
63 var el = Array.prototype.shift.call(arguments);
64 for (var a=0; a<arguments.length; a++)
65 if (arguments[a].constructor == Array)
66 append.apply(this, [el].concat(arguments[a]));
67 else
68 el.appendChild(arguments[a]);
69 return el;
70 };
71 var prepend = function(el, child) {
72 el.insertBefore(child, el.firstChild);
73 return el;

Callers 5

themetextFunction · 0.70
showFunction · 0.70
disclosureFunction · 0.70
_renderjsonFunction · 0.70
renderjsonFunction · 0.70

Calls 2

applyMethod · 0.65
callMethod · 0.45

Tested by

no test coverage detected