build/static/js/main.js
/* We depend on components having unique IDs */
We depend on components having unique IDs
We depend on components having unique IDs
function generateId(_ComponentStyle, _displayName, parentComponentId) {
  var displayName = typeof _displayName !== 'string' ? 'sc' : escape(_displayName);
  var nr = (identifiers[displayName] || 0) + 1;
  identifiers[displayName] = nr;
  var componentId = displayName + '-' + _ComponentStyle.generateName(displayName + nr);
  return parentComponentId ? parentComponentId + '-' + componentId : componentId;
} 
function generateId ( _ComponentStyle , _displayName , parentComponentId ) { var displayName = typeof _displayName !== 'string' ? 'sc' : escape ( _displayName ) ; var nr = ( identifiers [ displayName ] || 0 ) + 1 ; identifiers [ displayName ] = nr ; var componentId = displayName + '-' + _ComponentStyle . generateName ( displayName + nr ) ; return parentComponentId ? parentComponentId + '-' + componentId : componentId ; }
We depend on components having unique IDs
We depend on components having unique IDs
/**
   * This ensures uniqueness if two components happen to share
   * the same displayName.
   */ // $FlowFixMe