Apply suggestions from code review
Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
This commit is contained in:
parent
7c34e0a435
commit
5d0aa835a2
3 changed files with 14 additions and 15 deletions
|
@ -19,7 +19,6 @@ The event has the following attributes :
|
|||
|
||||
Example :
|
||||
```javascript
|
||||
WA.camera.onCameraUpdate.subscribe((worldView) => console.log(worldView));
|
||||
const subscription = WA.camera.onCameraUpdate().subscribe((worldView) => console.log(worldView));
|
||||
//later...
|
||||
WA.camera.onCameraUpdate().unsubscribe();
|
||||
```
|
||||
subscription.unsubscribe();
|
Loading…
Add table
Add a link
Reference in a new issue