2015-11-25 22:46:25 +08:00

28 lines
527 B
JavaScript

/**
* Created by nuintun on 2015/11/24.
*/
'use strict';
module.exports = function (Terminal){
Terminal.prototype.close = function (){
this.lines = [];
this.children = [];
this.readable = false;
this.writable = false;
this.write = function (){};
this.handler = function (){};
this.handlerTitle = function (){};
if (this.element) {
var parent = this.element.parentNode;
if (parent) {
parent.removeChild(this.element);
}
this.element = null;
}
};
};