code: function publishRegistrationName(registrationName, PluginModule, eventName) {
    ("production" !== "development" ? invariant(
      !EventPluginRegistry.registrationNameModules[registrationName],
      'EventPluginHub: More than one plugin attempted to publish the same ' +
      'registration name, `%s`.',
      registrationName
    ) : invariant(!EventPluginRegistry.registrationNameModules[registrationName]));
    EventPluginRegistry.registrationNameModules[registrationName] = PluginModule;
    EventPluginRegistry.registrationNameDependencies[registrationName] =
      PluginModule.eventTypes[eventName].dependencies;
  }
docs: Publishes a registration name that is used to identify dispatched events and
  can be used with `EventPluginHub.putListener` to register listeners.
  
  @param {string} registrationName Registration name to add.
  @param {object} PluginModule Plugin publishing the event.
  @private