Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/components/camera.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ When the `active` property gets toggled, the component will notify the camera sy
to change the current camera used by the renderer:

```js
var secondCameraEl = document.querySelector('#second-camera');
const secondCameraEl = document.querySelector('#second-camera');
secondCameraEl.setAttribute('camera', 'active', true);
```

Expand Down Expand Up @@ -126,8 +126,8 @@ AFRAME.registerComponent('rotation-reader', {
* vector or euler and not re-create on every tick to save memory.
*/
tick: (function () {
var position = new THREE.Vector3();
var quaternion = new THREE.Quaternion();
const position = new THREE.Vector3();
const quaternion = new THREE.Quaternion();

return function () {
this.el.object3D.getWorldPosition(position);
Expand Down
Loading