diff --git a/src/event/EventPluginRegistry.js b/src/event/EventPluginRegistry.js index 730c1879e6..2dbb3fb2c0 100644 --- a/src/event/EventPluginRegistry.js +++ b/src/event/EventPluginRegistry.js @@ -176,7 +176,8 @@ var EventPluginRegistry = { injectEventPluginOrder: function(InjectedEventPluginOrder) { invariant( !EventPluginOrder, - 'EventPluginRegistry: Cannot inject event plugin ordering more than once.' + 'EventPluginRegistry: Cannot inject event plugin ordering more than ' + + 'once. You are likely trying to load more than one copy of React.' ); // Clone the ordering so it cannot be dynamically mutated. EventPluginOrder = Array.prototype.slice.call(InjectedEventPluginOrder); diff --git a/src/event/__tests__/EventPluginRegistry-test.js b/src/event/__tests__/EventPluginRegistry-test.js index 2c2057fd3c..43ed309f2e 100644 --- a/src/event/__tests__/EventPluginRegistry-test.js +++ b/src/event/__tests__/EventPluginRegistry-test.js @@ -135,7 +135,8 @@ describe('EventPluginRegistry', function() { EventPluginRegistry.injectEventPluginOrder(pluginOrdering); }).toThrow( 'Invariant Violation: EventPluginRegistry: Cannot inject event plugin ' + - 'ordering more than once.' + 'ordering more than once. You are likely trying to load more than one ' + + 'copy of React.' ); });