@samitouri / QOS-React-2 / commits / 6793a7197e

Updated event pooling note in docs

Edvin Erikson committed Aug 15, 2015 at 21:47 UTC 6793a7197e3e1849d5c13c5798469d68bf76504b
1 file changed +1 -1
docs/docs/ref-05-events.md
+1 -1
@@ -57,7 +57,7 @@ function onClick(event) {
57
58 > Note:
59 >
60 -> If you want to access event properties in an asynchronous way, you need to create a new object e.g `var copiedEvent = assign({}, event);` or assign the specific properties to variables.
60 +> If you want to access the event properties in an asynchronous way, you should call `event.persist()` on the event, which will remove the synthetic event from the pool and allow references to the event to be retained by user code.
61
62 ## Supported Events
63