update files

This commit is contained in:
nuintun
2015-11-27 09:35:42 +08:00
parent 65e67f90da
commit 4e16de9f77
9 changed files with 89 additions and 48 deletions

View File

@@ -10,13 +10,21 @@ module.exports = function (Terminal){
*/
Terminal.prototype.close = function (){
this.lines = [];
this.screen = '';
this.screenLines = [];
this.children = [];
this.readable = false;
this.writable = false;
this.write = function (){};
this.ondata = function (){};
this.ontitle = function (){};
this.onscreen = function (){};
this.ondataTitle = function (){};
if (this.element) {
var parent = this.element.parentNode;
if (parent) {
parent.removeChild(this.element);
}
this.element = null;
}
};
};