From 1e2398cbea6b499c56b852ad07c331b1e375a88f Mon Sep 17 00:00:00 2001 From: James Pollack Date: Sat, 28 Nov 2015 23:04:52 -0800 Subject: [PATCH] use constants --- examples/controllers/handControllerGrab.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/controllers/handControllerGrab.js b/examples/controllers/handControllerGrab.js index eb07ec4133..bd63ab55e2 100644 --- a/examples/controllers/handControllerGrab.js +++ b/examples/controllers/handControllerGrab.js @@ -1216,10 +1216,10 @@ Controller.enableMapping(MAPPING_NAME); var handToDisable = 'none'; function update() { - if (handToDisable !== 0) { + if (handToDisable !== LEFT_HAND) { leftController.update(); } - if (handToDisable !== 1) { + if (handToDisable !== RIGHT_HAND) { rightController.update(); } }