MCPcopy
hub / github.com/plotly/dash / registerDirectEvent

Function registerDirectEvent

dash/deps/react-dom@18.2.0.js:164–185  ·  view source on GitHub ↗
(registrationName, dependencies)

Source from the content-addressed store, hash-verified

162 registerDirectEvent(registrationName + 'Capture', dependencies);
163 }
164 function registerDirectEvent(registrationName, dependencies) {
165 {
166 if (registrationNameDependencies[registrationName]) {
167 error('EventRegistry: More than one plugin attempted to publish the same ' + 'registration name, `%s`.', registrationName);
168 }
169 }
170
171 registrationNameDependencies[registrationName] = dependencies;
172
173 {
174 var lowerCasedName = registrationName.toLowerCase();
175 possibleRegistrationNames[lowerCasedName] = registrationName;
176
177 if (registrationName === 'onDoubleClick') {
178 possibleRegistrationNames.ondblclick = registrationName;
179 }
180 }
181
182 for (var i = 0; i < dependencies.length; i++) {
183 allNativeEvents.add(dependencies[i]);
184 }
185 }
186
187 var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
188

Callers 2

registerTwoPhaseEventFunction · 0.70
registerEvents$2Function · 0.70

Calls 2

errorFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…