From f8fce625f89da775a98587536e0cf8a08138f4f8 Mon Sep 17 00:00:00 2001 From: Kevin Lee <kevin@infinite-lee.com> Date: Tue, 24 Apr 2018 17:38:06 -0700 Subject: [PATCH] lint fixes --- src/components/duck.js | 4 ++-- src/components/haptic-feedback.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/duck.js b/src/components/duck.js index 0b9a1c472..69ac41313 100644 --- a/src/components/duck.js +++ b/src/components/duck.js @@ -8,8 +8,8 @@ AFRAME.registerComponent("duck", { init: function() { this.system = this.el.sceneEl.systems.physics; this.hasBody = false; - this.position = new CANNON.Vec3(); - this.force = new CANNON.Vec3(0, this.data.initialForce, 0); + this.position = new THREE.Vector3(); + this.force = new THREE.Vector3(0, this.data.initialForce, 0); this.initialScale = this.el.object3D.scale.x; this.maxScale = this.data.maxScale * this.initialScale; diff --git a/src/components/haptic-feedback.js b/src/components/haptic-feedback.js index d7db51d5e..9a0a2337d 100644 --- a/src/components/haptic-feedback.js +++ b/src/components/haptic-feedback.js @@ -45,7 +45,6 @@ AFRAME.registerComponent("haptic-feedback", { handlePulse: function(event) { const { intensity } = event.detail; - let strength; if (strengthForIntensity[intensity]) { this.pulse(strengthForIntensity[intensity]); -- GitLab