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

Function elt

lib/web/CodeMirror/addon/tern/tern.js:581–590  ·  view source on GitHub ↗
(tagname, cls /*, ... elts*/)

Source from the content-addressed store, hash-verified

579 var cmpPos = CodeMirror.cmpPos;
580
581 function elt(tagname, cls /*, ... elts*/) {
582 var e = document.createElement(tagname);
583 if (cls) e.className = cls;
584 for (var i = 2; i < arguments.length; ++i) {
585 var elt = arguments[i];
586 if (typeof elt == "string") elt = document.createTextNode(elt);
587 e.appendChild(elt);
588 }
589 return e;
590 }
591
592 function dialog(cm, text, f) {
593 if (cm.openDialog)

Callers 3

showContextInfoFunction · 0.70
showArgHintsFunction · 0.70
makeTooltipFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected