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

Function done

static/js/codemirror/codemirror.js:1643–1651  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

1641 }
1642
1643 function done(e) {
1644 counter = Infinity;
1645 var cur = posFromMouse(cm, e);
1646 if (cur) doSelect(cur);
1647 e_preventDefault(e);
1648 focusInput(cm);
1649 off(document, "mousemove", move);
1650 off(document, "mouseup", up);
1651 }
1652
1653 var move = operation(cm, function(e) {
1654 if (!ie && !e_button(e)) done(e);

Callers 1

onMouseDownFunction · 0.85

Calls 5

posFromMouseFunction · 0.85
doSelectFunction · 0.85
e_preventDefaultFunction · 0.85
focusInputFunction · 0.85
offFunction · 0.85

Tested by

no test coverage detected