From ff4c194756874829c10c19900f122ce5bebca869 Mon Sep 17 00:00:00 2001 From: "Anthony J. Thibault" Date: Fri, 19 Aug 2016 15:31:57 -0700 Subject: [PATCH] eslint fix --- scripts/system/controllers/handControllerGrab.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/system/controllers/handControllerGrab.js b/scripts/system/controllers/handControllerGrab.js index cef2c4fdda..9cbdebb93d 100644 --- a/scripts/system/controllers/handControllerGrab.js +++ b/scripts/system/controllers/handControllerGrab.js @@ -1409,12 +1409,11 @@ function MyController(hand) { } } + var pointerEvent; if (rayPickInfo.entityID && Entities.wantsHandControllerPointerEvents(rayPickInfo.entityID)) { entity = rayPickInfo.entityID; name = entityPropertiesCache.getProps(entity).name; - var pointerEvent; - if (Entities.keyboardFocusEntity != entity) { Entities.keyboardFocusEntity = entity; @@ -1464,7 +1463,7 @@ function MyController(hand) { return; } } else if (this.hoverEntity) { - var pinterEvent = { + pointerEvent = { type: "Move", id: this.hand + 1 };