MCPcopy Create free account
hub / github.com/breck7/scroll / signal

Function signal

external/.scrollLibs.js:1968–1977  ·  view source on GitHub ↗
(emitter, type /*, values...*/)

Source from the content-addressed store, hash-verified

1966 }
1967
1968 function signal(emitter, type /*, values...*/) {
1969 var handlers = getHandlers(emitter, type)
1970 if (!handlers.length) {
1971 return
1972 }
1973 var args = Array.prototype.slice.call(arguments, 2)
1974 for (var i = 0; i < handlers.length; ++i) {
1975 handlers[i].apply(null, args)
1976 }
1977 }
1978
1979 // The DOM events that CodeMirror handles can be overridden by
1980 // registering a (non-DOM) handler on the editor for the event name,

Callers 12

signalDOMEventFunction · 0.85
buildLineContentFunction · 0.85
onFocusFunction · 0.85
onBlurFunction · 0.85
endOperation_finishFunction · 0.85
addChangeToHistoryFunction · 0.85
filterSelectionChangeFunction · 0.85
skipAtomicInnerFunction · 0.85
filterChangeFunction · 0.85
gutterEventFunction · 0.85
registerEventHandlersFunction · 0.85
addEditorMethodsFunction · 0.85

Calls 1

getHandlersFunction · 0.85

Tested by

no test coverage detected