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

Function makeTooltip

lib/web/CodeMirror/addon/tern/tern.js:640–647  ·  view source on GitHub ↗
(x, y, content, cm)

Source from the content-addressed store, hash-verified

638 }
639
640 function makeTooltip(x, y, content, cm) {
641 var node = elt("div", cls + "tooltip", content);
642 node.style.left = x + "px";
643 node.style.top = y + "px";
644 var container = ((cm.options || {}).hintOptions || {}).container || document.body;
645 container.appendChild(node);
646 return node;
647 }
648
649 function remove(node) {
650 var p = node && node.parentNode;

Callers 3

hintFunction · 0.85
showArgHintsFunction · 0.85
tempTooltipFunction · 0.85

Calls 1

eltFunction · 0.70

Tested by

no test coverage detected