MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / eventInWidget

Function eventInWidget

static/js/codemirror/codemirror.js:1501–1507  ·  view source on GitHub ↗
(display, e)

Source from the content-addressed store, hash-verified

1499 }
1500
1501 function eventInWidget(display, e) {
1502 for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {
1503 if (!n) return true;
1504 if (/\bCodeMirror-(?:line)?widget\b/.test(n.className) ||
1505 n.parentNode == display.sizer && n != display.mover) return true;
1506 }
1507 }
1508
1509 function posFromMouse(cm, e, liberal) {
1510 var display = cm.display;

Callers 5

registerEventHandlersFunction · 0.85
onMouseDownFunction · 0.85
onDropFunction · 0.85
onDragStartFunction · 0.85
onContextMenuFunction · 0.85

Calls 2

e_targetFunction · 0.85
testMethod · 0.45

Tested by

no test coverage detected