(cm)
| 56 | } |
| 57 | |
| 58 | export function signalCursorActivity(cm) { |
| 59 | let arr = cm._handlers && cm._handlers.cursorActivity |
| 60 | if (!arr) return |
| 61 | let set = cm.curOp.cursorActivityHandlers || (cm.curOp.cursorActivityHandlers = []) |
| 62 | for (let i = 0; i < arr.length; ++i) if (indexOf(set, arr[i]) == -1) |
| 63 | set.push(arr[i]) |
| 64 | } |
| 65 | |
| 66 | export function hasHandler(emitter, type) { |
| 67 | return getHandlers(emitter, type).length > 0 |
no test coverage detected