From 47814847f9348fe33cb4c76ae78845ad9f7187c9 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Sun, 14 May 2017 12:47:17 -0700 Subject: [PATCH] Remove var usages --- src/Renderer.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Renderer.ts b/src/Renderer.ts index 78ca3574..85d57eb9 100644 --- a/src/Renderer.ts +++ b/src/Renderer.ts @@ -154,13 +154,13 @@ export class Renderer { let attr = this._terminal.defAttr; - var documentFragment = document.createDocumentFragment(); - var innerHTML = ''; - var currentElement; + const documentFragment = document.createDocumentFragment(); + let innerHTML = ''; + let currentElement; // Return the row's spans to the pool while (this._terminal.children[y].children.length) { - var child = this._terminal.children[y].children[0]; + const child = this._terminal.children[y].children[0]; this._terminal.children[y].removeChild(child); this._spanElementObjectPool.release(child); } @@ -168,8 +168,8 @@ export class Renderer { for (let i = 0; i < width; i++) { // TODO: Could data be a more specific type? let data: any = line[i][0]; - let ch = line[i][1]; - let ch_width: any = line[i][2]; + const ch = line[i][1]; + const ch_width: any = line[i][2]; if (!ch_width) { continue; }