mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-08 12:14:03 +08:00
19 lines
370 B
JavaScript
19 lines
370 B
JavaScript
/**
|
|
* Created by nuintun on 2015/11/24.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
module.exports = function (Terminal){
|
|
Terminal.prototype.destroy = function (){
|
|
this.readable = false;
|
|
this.writable = false;
|
|
this.handler = function (){};
|
|
this.write = function (){};
|
|
|
|
if (this.element.parentNode) {
|
|
this.element.parentNode.removeChild(this.element);
|
|
}
|
|
};
|
|
};
|