MCPcopy
hub / github.com/Worklenz/worklenz / getEventDispatcher

Function getEventDispatcher

worklenz-backend/src/public/tinymce/tinymce.js:30103–30115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30101 }
30102
30103 const getEventDispatcher = obj => {
30104 if (!obj._eventDispatcher) {
30105 obj._eventDispatcher = new EventDispatcher({
30106 scope: obj,
30107 toggleEvent: (name, state) => {
30108 if (EventDispatcher.isNative(name) && obj.toggleNativeEvent) {
30109 obj.toggleNativeEvent(name, state);
30110 }
30111 }
30112 });
30113 }
30114 return obj._eventDispatcher;
30115 };
30116 const Observable = {
30117 fire(name, args, bubble) {
30118 return this.dispatch(name, args, bubble);

Callers 5

dispatchFunction · 0.85
onFunction · 0.85
offFunction · 0.85
onceFunction · 0.85
hasEventListenersFunction · 0.85

Calls 2

toggleNativeEventMethod · 0.80
isNativeMethod · 0.45

Tested by

no test coverage detected