Fixed style and comment nits

This commit is contained in:
Charles Marsh 2014-08-15 11:52:22 -04:00
parent a195d3ea1f
commit c5be746fda
3 changed files with 14 additions and 14 deletions

View File

@ -29,7 +29,7 @@ String type
> Note:
>
> As of v0.12, returning `false` from an event handler will no longer stop event propagation. Instead, `stopPropagation()` and `preventDefault()` should be triggered manually.
> As of v0.12, returning `false` from an event handler will no longer stop event propagation. Instead, `e.stopPropagation()` or `e.preventDefault()` should be triggered manually, as appropriate.
## Supported Events

View File

@ -276,8 +276,8 @@ describe('ReactBrowserEventEmitter', function() {
expect(console.warn.calls.length).toEqual(1);
expect(console.warn.calls[0].args[0]).toBe(
'Returning `false` from an event handler will be deprecated in a ' +
'future release. Instead, manually call stopPropagation() and ' +
'preventDefault().'
'future release. Instead, manually call e.stopPropagation() or ' +
'e.preventDefault(), as appropriate.'
);
});

View File

@ -34,8 +34,8 @@ var SyntheticWheelEvent = require('SyntheticWheelEvent');
var getEventCharCode = require('getEventCharCode');
var invariant = require('invariant');
var monitorCodeUse = require('monitorCodeUse');
var keyOf = require('keyOf');
var monitorCodeUse = require('monitorCodeUse');
var topLevelTypes = EventConstants.topLevelTypes;
@ -315,8 +315,8 @@ var SimpleEventPlugin = {
monitorCodeUse('react_event_return_false');
console.warn(
'Returning `false` from an event handler will be deprecated in a ' +
'future release. Instead, manually call stopPropagation() ' +
'and preventDefault().'
'future release. Instead, manually call e.stopPropagation() or ' +
'e.preventDefault(), as appropriate.'
);
}
event.stopPropagation();