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

Function themetext

lib/web/renderjson.js:55–61  ·  view source on GitHub ↗
(/* [class, text]+ */)

Source from the content-addressed store, hash-verified

53var module;
54(module||{}).exports = renderjson = (function() {
55 var themetext = function(/* [class, text]+ */) {
56 var spans = [];
57 while (arguments.length)
58 spans.push(append(span(Array.prototype.shift.call(arguments)),
59 text(Array.prototype.shift.call(arguments))));
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++)

Callers 2

disclosureFunction · 0.85
_renderjsonFunction · 0.85

Calls 5

spanFunction · 0.85
appendFunction · 0.70
textFunction · 0.70
pushMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected