Browse Source

Re-add with warning and monitorCodeUse

main
Charles Marsh 11 years ago
parent
commit
9a59ebf752
  1. 2
      _config.yml
  2. 8
      docs/ref-05-events.md

2
_config.yml

@ -34,4 +34,4 @@ sass:
sass_dir: _css
gems:
- jekyll-redirect-from
react_version: 0.12.0-alpha
react_version: 0.11.1

8
docs/ref-05-events.md

@ -10,10 +10,6 @@ next: dom-differences.html
Your event handlers will be passed instances of `SyntheticEvent`, a cross-browser wrapper around the browser's native event. It has the same interface as the browser's native event, including `stopPropagation()` and `preventDefault()`, except the events work identically across all browsers.
> Note:
>
> Prior to v0.12, event handlers could return `false` to stop propagation. This behavior is no longer supported; instead, `stopPropagation()` and `preventDefault()` should be triggered manually.
If you find that you need the underlying browser event for some reason, simply use the `nativeEvent` attribute to get it. Every `SyntheticEvent` object has the following attributes:
```javascript
@ -31,6 +27,10 @@ Date timeStamp
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.
## Supported Events

Loading…
Cancel
Save