examples/dist/common.js
function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) {
  if (callbackBookkeepingPool.length) {
    var instance = callbackBookkeepingPool.pop();
    instance.topLevelType = topLevelType;
    instance.nativeEvent = nativeEvent;
    instance.targetInst = targetInst;
    return instance;
  }
  return {
    topLevelType: topLevelType,
    nativeEvent: nativeEvent,
    targetInst: targetInst,
    ancestors: []
  };
}
function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) {
  if (callbackBookkeepingPool.length) {
    var instance = callbackBookkeepingPool.pop();
    instance.topLevelType = topLevelType;
    instance.nativeEvent = nativeEvent;
    instance.targetInst = targetInst;
    return instance;
  }
  return {
    topLevelType: topLevelType,
    nativeEvent: nativeEvent,
    targetInst: targetInst,
    ancestors: []
  };
}
function getTopLevelCallbackBookKeeping ( topLevelType , nativeEvent , targetInst ) { if ( callbackBookkeepingPool . length ) { var instance = callbackBookkeepingPool . pop ( ) ; instance . topLevelType = topLevelType ; instance . nativeEvent = nativeEvent ; instance . targetInst = targetInst ; return instance ; } return { topLevelType : topLevelType , nativeEvent : nativeEvent , targetInst : targetInst , ancestors : [ ] } ; }
Used to store ancestor hierarchy in top level callback
Used to store ancestor hierarchy in top level callback