Apply suggestions from code review

Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
This commit is contained in:
Bénédicte Q 2022-01-03 14:21:59 +01:00 committed by GitHub
parent 7c34e0a435
commit 5d0aa835a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 15 deletions

View file

@ -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();