MCPcopy Create free account
hub / github.com/microsoft/SandDance / getCompositionEventType

Function getCompositionEventType

docs/external/js/react-dom.development.js:8818–8829  ·  view source on GitHub ↗

* Translate native top level events into event types. * * @param {string} topLevelType * @return {object}

(topLevelType)

Source from the content-addressed store, hash-verified

8816
8817
8818 function getCompositionEventType(topLevelType) {
8819 switch (topLevelType) {
8820 case TOP_COMPOSITION_START:
8821 return eventTypes.compositionStart;
8822
8823 case TOP_COMPOSITION_END:
8824 return eventTypes.compositionEnd;
8825
8826 case TOP_COMPOSITION_UPDATE:
8827 return eventTypes.compositionUpdate;
8828 }
8829 }
8830 /**
8831 * Does our fallback best-guess model think this event signifies that
8832 * composition has begun?

Callers 1

extractCompositionEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected