example/dist/csssystem/styleguide/cmod_styleguide.js
function recomputePluginOrdering() {
  if (!EventPluginOrder) {
    // Wait until an `EventPluginOrder` is injected.
    return;
  }
  for (var pluginName in namesToPlugins) {
    var PluginModule = namesToPlugins[pluginName];
    var pluginIndex = EventPluginOrder.indexOf(pluginName);
    ("production" !== "development" ? invariant(
      pluginIndex > -1,
      'EventPluginRegistry: Cannot inject event plugins that do not exist in ' +
      'the plugin ordering, `%s`.',
      pluginName
    ) : invariant(pluginIndex > -1));
    if (EventPluginRegistry.plugins[pluginIndex]) {
      continue;
    }
    ("production" !== "development" ? invariant(
      PluginModule.extractEvents,
      'EventPluginRegistry: Event plugins must implement an `extractEvents` ' +
      'method, but `%s` does not.',
      pluginName
    ) : invariant(PluginModule.extractEvents));
    EventPluginRegistry.plugins[pluginIndex] = PluginModule;
    var publishedEvents = PluginModule.eventTypes;
    for (var eventName in publishedEvents) {
      ("production" !== "development" ? invariant(
        publishEventForPlugin(
          publishedEvents[eventName],
          PluginModule,
          eventName
        ),
        'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.',
        eventName,
        pluginName
      ) : invariant(publishEventForPlugin(
        publishedEvents[eventName],
        PluginModule,
        eventName
      )));
    }
  }
}
function recomputePluginOrdering() {
  if (!EventPluginOrder) {
    // Wait until an `EventPluginOrder` is injected.
    return;
  }
  for (var pluginName in namesToPlugins) {
    var PluginModule = namesToPlugins[pluginName];
    var pluginIndex = EventPluginOrder.indexOf(pluginName);
    ("production" !== "development" ? invariant(
      pluginIndex > -1,
      'EventPluginRegistry: Cannot inject event plugins that do not exist in ' +
      'the plugin ordering, `%s`.',
      pluginName
    ) : invariant(pluginIndex > -1));
    if (EventPluginRegistry.plugins[pluginIndex]) {
      continue;
    }
    ("production" !== "development" ? invariant(
      PluginModule.extractEvents,
      'EventPluginRegistry: Event plugins must implement an `extractEvents` ' +
      'method, but `%s` does not.',
      pluginName
    ) : invariant(PluginModule.extractEvents));
    EventPluginRegistry.plugins[pluginIndex] = PluginModule;
    var publishedEvents = PluginModule.eventTypes;
    for (var eventName in publishedEvents) {
      ("production" !== "development" ? invariant(
        publishEventForPlugin(
          publishedEvents[eventName],
          PluginModule,
          eventName
        ),
        'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.',
        eventName,
        pluginName
      ) : invariant(publishEventForPlugin(
        publishedEvents[eventName],
        PluginModule,
        eventName
      )));
    }
  }
}
function recomputePluginOrdering ( ) { if ( ! EventPluginOrder ) { // Wait until an `EventPluginOrder` is injected. return ; } for ( var pluginName in namesToPlugins ) { var PluginModule = namesToPlugins [ pluginName ] ; var pluginIndex = EventPluginOrder . indexOf ( pluginName ) ; ( "production" !== "development" ? invariant ( pluginIndex > - 1 , 'EventPluginRegistry: Cannot inject event plugins that do not exist in ' + 'the plugin ordering, `%s`.' , pluginName ) : invariant ( pluginIndex > - 1 ) ) ; if ( EventPluginRegistry . plugins [ pluginIndex ] ) { continue ; } ( "production" !== "development" ? invariant ( PluginModule . extractEvents , 'EventPluginRegistry: Event plugins must implement an `extractEvents` ' + 'method, but `%s` does not.' , pluginName ) : invariant ( PluginModule . extractEvents ) ) ; EventPluginRegistry . plugins [ pluginIndex ] = PluginModule ; var publishedEvents = PluginModule . eventTypes ; for ( var eventName in publishedEvents ) { ( "production" !== "development" ? invariant ( publishEventForPlugin ( publishedEvents [ eventName ] , PluginModule , eventName ) , 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.' , eventName , pluginName ) : invariant ( publishEventForPlugin ( publishedEvents [ eventName ] , PluginModule , eventName ) ) ) ; } } }
Recomputes the plugin list using the injected plugins and plugin ordering.

@private
Recomputes the plugin list using the injected plugins and plugin ordering .