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

Function hasHandler

lib/web/CodeMirror/src/util/event.js:66–68  ·  view source on GitHub ↗
(emitter, type)

Source from the content-addressed store, hash-verified

64}
65
66export function hasHandler(emitter, type) {
67 return getHandlers(emitter, type).length > 0
68}
69
70// Add on and off methods to a constructor's prototype, to make
71// registering events on such objects more convenient.

Callers 8

signalMethod · 0.90
clearMethod · 0.90
setSelectionNoUndoFunction · 0.90
makeChangeFunction · 0.90
makeChangeFromHistoryFunction · 0.90
gutterEventFunction · 0.90
contextMenuInGutterFunction · 0.90

Calls 1

getHandlersFunction · 0.70

Tested by

no test coverage detected