From 22ab3fc7b57ad568e53d1cca1d243413b4380ec1 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 12 Jul 2016 14:36:54 -0700 Subject: [PATCH] cleanup a couple of comments --- scripts/system/ignore.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/system/ignore.js b/scripts/system/ignore.js index 05622237a9..a1b2445d85 100644 --- a/scripts/system/ignore.js +++ b/scripts/system/ignore.js @@ -38,7 +38,6 @@ function showOverlays() { var identifiers = AvatarList.getAvatarIdentifiers(); for (i = 0; i < identifiers.length; ++i) { - // get the position for this avatar var identifier = identifiers[i]; if (identifier === null) { @@ -46,6 +45,7 @@ function showOverlays() { break; } + // get the position for this avatar var avatar = AvatarList.getAvatar(identifier); var avatarPosition = avatar && avatar.position; @@ -107,10 +107,10 @@ Controller.mousePressEvent.connect(function(event){ // matched to an overlay, ask for the matching avatar to be ignored Users.ignore(ignoreOverlays[i]['avatarID']); - // remove the actual overlay + // remove the actual overlay so it is no longer rendered Overlays.deleteOverlay(ignoreOverlay); - // remove the overlay from our internal array + // remove the overlay ID and avatar ID from our internal array ignoreOverlays.splice(i, 1); } }