MCPcopy Index your code
hub / github.com/DHTMLX/gantt / signalCursorActivity

Function signalCursorActivity

samples/common/codehighlight/codemirror.js:581–587  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

579 }
580
581 function signalCursorActivity(cm) {
582 var arr = cm._handlers && cm._handlers.cursorActivity;
583 if (!arr) { return }
584 var set = cm.curOp.cursorActivityHandlers || (cm.curOp.cursorActivityHandlers = []);
585 for (var i = 0; i < arr.length; ++i) { if (indexOf(set, arr[i]) == -1)
586 { set.push(arr[i]); } }
587 }
588
589 function hasHandler(emitter, type) {
590 return getHandlers(emitter, type).length > 0

Callers 2

setSelectionInnerFunction · 0.85

Calls 1

indexOfFunction · 0.85

Tested by

no test coverage detected