@samitouri / QOS-React-2 / commits / cf45a40bb8

More info in monitorCodeUse call

Charles Marsh committed Aug 17, 2014 at 22:01 UTC cf45a40bb876e1f09512ed1dfec118d328930bbb
1 file changed +3 -1
src/browser/eventPlugins/SimpleEventPlugin.js
+3 -1
@@ -312,7 +312,9 @@ var SimpleEventPlugin = {
312 var returnValue = EventPluginUtils.executeDispatch(event, listener, domID);
313 if (__DEV__) {
314 if (typeof returnValue === 'boolean') {
315 - monitorCodeUse('react_event_return_false');
315 + monitorCodeUse('react_event_return_false', {
316 + eventHandlerName: listener.__reactBoundMethod.displayName
317 + });
318 console.warn(
319 'Returning `false` from an event handler is deprecated and will ' +
320 'be ignored in a future release. Instead, manually call ' +