update files

This commit is contained in:
nuintun
2015-11-24 22:00:46 +08:00
parent 085a5cf350
commit 32ae3adceb
24 changed files with 149 additions and 142 deletions

View File

@@ -7,7 +7,9 @@
function addRowsOnDemand(){
while (this.y >= this.rows) {
this.lines.push(this.blankLine());
var div = document.createElement('div');
this.element.appendChild(div);
this.children.push(div);
@@ -18,7 +20,9 @@ function addRowsOnDemand(){
module.exports = function (Terminal){
Terminal.prototype.updateRange = function (y){
if (y < this.refreshStart) this.refreshStart = y;
if (y > this.refreshEnd) this.refreshEnd = y;
addRowsOnDemand.bind(this)();
};