MCPcopy Create free account
hub / github.com/TruthHun/BookStack / getHandlers

Function getHandlers

static/mergely/lib/codemirror.js:8157–8161  ·  view source on GitHub ↗
(emitter, type, copy)

Source from the content-addressed store, hash-verified

8155
8156 var noHandlers = []
8157 function getHandlers(emitter, type, copy) {
8158 var arr = emitter._handlers && emitter._handlers[type]
8159 if (copy) return arr && arr.length > 0 ? arr.slice() : noHandlers
8160 else return arr || noHandlers
8161 }
8162
8163 var off = CodeMirror.off = function(emitter, type, f) {
8164 if (emitter.removeEventListener)

Callers 3

codemirror.jsFile · 0.85
signalLaterFunction · 0.85
hasHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected