MCPcopy
hub / github.com/yabwe/medium-editor / fireEvent

Function fireEvent

spec/helpers/util.js:106–114  ·  view source on GitHub ↗
(element, eventName, options)

Source from the content-addressed store, hash-verified

104
105// keyCode, ctrlKey, target, relatedTarget, shiftKey, altKey
106function fireEvent(element, eventName, options) {
107 var evt = prepareEvent(
108 element,
109 eventName,
110 options
111 );
112
113 return firePreparedEvent(evt, element, eventName);
114}
115
116/**
117 * prepareEvent works with firePreparedEvent.

Callers 15

core-api.spec.jsFile · 0.85
anchor.spec.jsFile · 0.85
setup.spec.jsFile · 0.85
fontname.spec.jsFile · 0.85
paste.spec.jsFile · 0.85
fontsize.spec.jsFile · 0.85
extension.spec.jsFile · 0.85
buttons.spec.jsFile · 0.85
toolbar.spec.jsFile · 0.85
triggerAutolinkingFunction · 0.85

Calls 2

prepareEventFunction · 0.85
firePreparedEventFunction · 0.85

Tested by 3

triggerAutolinkingFunction · 0.68
runAddTestFunction · 0.68
runEditableInputTestsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…