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

Function getPooledEvent

docs/external/js/react-dom.development.js:8694–8704  ·  view source on GitHub ↗
(dispatchConfig, targetInst, nativeEvent, nativeInst)

Source from the content-addressed store, hash-verified

8692 }
8693
8694 function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
8695 var EventConstructor = this;
8696
8697 if (EventConstructor.eventPool.length) {
8698 var instance = EventConstructor.eventPool.pop();
8699 EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);
8700 return instance;
8701 }
8702
8703 return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);
8704 }
8705
8706 function releasePooledEvent(event) {
8707 var EventConstructor = this;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected