From 5c679826dfb51c83633eb46d02c767750f6efeca Mon Sep 17 00:00:00 2001 From: nuintun Date: Fri, 4 Dec 2015 12:23:09 +0800 Subject: [PATCH] update files --- static/js/terminal/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/terminal/index.js b/static/js/terminal/index.js index 34a576c..580c523 100644 --- a/static/js/terminal/index.js +++ b/static/js/terminal/index.js @@ -743,6 +743,7 @@ TChar.prototype.toString = function (){ return this.value; }; +// rows unique id var _uniqueId = 0; /** @@ -750,7 +751,7 @@ var _uniqueId = 0; * @constructor */ function Row(){ - this.uniqueId = _uniqueId++ | 0; + this.id = _uniqueId++ | 0; this.version = 0; this.cells = []; } @@ -1054,7 +1055,7 @@ AnsiTerminal.prototype.styles = function (){ for (i = 0; i < rows; ++i) { stylesBuffer.buffer[i] = { - id: this.screen.buffer[i].uniqueId, + id: this.screen.buffer[i].id, version: this.screen.buffer[i].version, cells: [] };