More info in monitorCodeUse call

This commit is contained in:
Charles Marsh
2014-08-17 22:01:23 -04:00
parent 429650a750
commit cf45a40bb8
@@ -312,7 +312,9 @@ var SimpleEventPlugin = {
var returnValue = EventPluginUtils.executeDispatch(event, listener, domID);
if (__DEV__) {
if (typeof returnValue === 'boolean') {
monitorCodeUse('react_event_return_false');
monitorCodeUse('react_event_return_false', {
eventHandlerName: listener.__reactBoundMethod.displayName
});
console.warn(
'Returning `false` from an event handler is deprecated and will ' +
'be ignored in a future release. Instead, manually call ' +