* Injects an ordering of plugins (by plugin name). This allows the ordering * to be decoupled from injection of the actual plugins so that ordering is * always deterministic regardless of packaging, on-the-fly injection, etc. * * @param {array} InjectedEventPluginOrder * @internal * @see {Even
(injectedEventPluginOrder)
| 2177 | * @see {EventPluginHub.injection.injectEventPluginOrder} |
| 2178 | */ |
| 2179 | function injectEventPluginOrder(injectedEventPluginOrder) { |
| 2180 | !!eventPluginOrder ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : void 0; |
| 2181 | // Clone the ordering so it cannot be dynamically mutated. |
| 2182 | eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); |
| 2183 | recomputePluginOrdering(); |
| 2184 | } |
| 2185 | |
| 2186 | /** |
| 2187 | * Injects plugins to be used by `EventPluginHub`. The plugin names must be |
nothing calls this directly
no test coverage detected