docs: function (event) {
  	    var dispatchConfig = event.dispatchConfig;
  	    if (dispatchConfig.registrationName) {
  	      return EventPluginRegistry.registrationNameModules[dispatchConfig.registrationName] || null;
  	    }
  	    if (dispatchConfig.phasedRegistrationNames !== undefined) {
  	      // pulling phasedRegistrationNames out of dispatchConfig helps Flow see
  	      // that it is not undefined.
  	      var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
  	
  	      for (var phase in phasedRegistrationNames) {
  	        if (!phasedRegistrationNames.hasOwnProperty(phase)) {
  	          continue;
  	        }
  	        var pluginModule = EventPluginRegistry.registrationNameModules[phasedRegistrationNames[phase]];
  	        if (pluginModule) {
  	          return pluginModule;
  	        }
  	      }
  	    }
  	    return null;
  	  }