From 6e076985f2ececbb2013cb14d7f72e346ce91394 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Wed, 25 Nov 2015 16:46:53 +1300 Subject: [PATCH] JSLint --- examples/controllers/leap/laserPointer.js | 5 +++-- examples/controllers/leap/leapHands.js | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/controllers/leap/laserPointer.js b/examples/controllers/leap/laserPointer.js index c8c3cf372a..c7d72e6cff 100644 --- a/examples/controllers/leap/laserPointer.js +++ b/examples/controllers/leap/laserPointer.js @@ -22,8 +22,9 @@ var laserPointer = (function () { ]; function isHandPointing(hand) { - var MINIMUM_TRIGGER_PULL = 0.9; - var controller = hand === 0 ? Controller.Standard.LT : Controller.Standard.RT; + var MINIMUM_TRIGGER_PULL = 0.9, + controller; + controller = hand === 0 ? Controller.Standard.LT : Controller.Standard.RT; return Controller.getValue(controller) > MINIMUM_TRIGGER_PULL; } diff --git a/examples/controllers/leap/leapHands.js b/examples/controllers/leap/leapHands.js index 42df89084d..7835df7452 100644 --- a/examples/controllers/leap/leapHands.js +++ b/examples/controllers/leap/leapHands.js @@ -196,7 +196,7 @@ var leapHands = (function () { MyAvatar.setJointRotation("LeftArm", Quat.fromPitchYawRollDegrees(90.0, 0.0, 0.0)); MyAvatar.setJointRotation("LeftForeArm", Quat.fromPitchYawRollDegrees(0.0, 90.0, 90.0)); MyAvatar.setJointRotation("LeftHand", Quat.fromPitchYawRollRadians(0.0, 0.0, 0.0)); - MyAvatar.setJointRotation("RightArm", Quat.fromPitchYawRollDegrees(90.0,0.0, 0.0)); + MyAvatar.setJointRotation("RightArm", Quat.fromPitchYawRollDegrees(90.0, 0.0, 0.0)); MyAvatar.setJointRotation("RightForeArm", Quat.fromPitchYawRollDegrees(0.0, -90.0, -90.0)); MyAvatar.setJointRotation("RightHand", Quat.fromPitchYawRollRadians(0.0, 0.0, 0.0)); @@ -384,7 +384,7 @@ var leapHands = (function () { x: -handRotation.x, y: -handRotation.z, z: -handRotation.y, - w: handRotation.w, + w: handRotation.w }; // Hand rotation in avatar coordinates ... @@ -414,7 +414,7 @@ var leapHands = (function () { x: -handRotation.x, y: -handRotation.z, z: -handRotation.y, - w: handRotation.w, + w: handRotation.w }; // Hand rotation in avatar coordinates ...