MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / getTopLevelCallbackBookKeeping

Function getTopLevelCallbackBookKeeping

code/composition/public/app.js:5949–5963  ·  view source on GitHub ↗
(topLevelType, nativeEvent, targetInst)

Source from the content-addressed store, hash-verified

5947
5948// Used to store ancestor hierarchy in top level callback
5949function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) {
5950 if (callbackBookkeepingPool.length) {
5951 var instance = callbackBookkeepingPool.pop();
5952 instance.topLevelType = topLevelType;
5953 instance.nativeEvent = nativeEvent;
5954 instance.targetInst = targetInst;
5955 return instance;
5956 }
5957 return {
5958 topLevelType: topLevelType,
5959 nativeEvent: nativeEvent,
5960 targetInst: targetInst,
5961 ancestors: []
5962 };
5963}
5964
5965function releaseTopLevelCallbackBookKeeping(instance) {
5966 instance.topLevelType = null;

Callers 1

dispatchEventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected