update files

This commit is contained in:
nuintun 2015-11-25 14:54:54 +08:00
parent 7e450e555c
commit 59097a29ce

View File

@ -4,26 +4,11 @@
'use strict';
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);
this.rows++;
}
}
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)();
};
Terminal.prototype.maxRange = function (){