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

Function releaseTopLevelCallbackBookKeeping

code/styling/public/app.js:5827–5835  ·  view source on GitHub ↗
(instance)

Source from the content-addressed store, hash-verified

5825}
5826
5827function releaseTopLevelCallbackBookKeeping(instance) {
5828 instance.topLevelType = null;
5829 instance.nativeEvent = null;
5830 instance.targetInst = null;
5831 instance.ancestors.length = 0;
5832 if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {
5833 callbackBookkeepingPool.push(instance);
5834 }
5835}
5836
5837function handleTopLevel(bookKeeping) {
5838 var targetInst = bookKeeping.targetInst;

Callers 1

dispatchEventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected