MCPcopy Create free account
hub / github.com/TruthHun/BookStack / elt

Function elt

static/editor.md/lib/codemirror/addon/tern/tern.js:573–582  ·  view source on GitHub ↗
(tagname, cls /*, ... elts*/)

Source from the content-addressed store, hash-verified

571 var cmpPos = CodeMirror.cmpPos;
572
573 function elt(tagname, cls /*, ... elts*/) {
574 var e = document.createElement(tagname);
575 if (cls) e.className = cls;
576 for (var i = 2; i < arguments.length; ++i) {
577 var elt = arguments[i];
578 if (typeof elt == "string") elt = document.createTextNode(elt);
579 e.appendChild(elt);
580 }
581 return e;
582 }
583
584 function dialog(cm, text, f) {
585 if (cm.openDialog)

Callers 3

showContextInfoFunction · 0.70
showArgHintsFunction · 0.70
makeTooltipFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected