mirror of
https://github.com/nuintun/command-manager.git
synced 2025-10-20 09:51:31 +08:00
update files
This commit is contained in:
@@ -9,21 +9,20 @@ module.exports = function (Terminal){
|
||||
Terminal.prototype.reset = function (){
|
||||
var parent;
|
||||
|
||||
if (this.element) {
|
||||
parent = this.element.parentNode;
|
||||
if (this.screen) {
|
||||
parent = this.screen.parentNode;
|
||||
|
||||
if (parent) {
|
||||
parent.removeChild(this.element);
|
||||
parent.removeChild(this.screen);
|
||||
}
|
||||
}
|
||||
|
||||
Terminal.call(this, this.options);
|
||||
|
||||
this.open();
|
||||
this.refresh(0, this.rows - 1);
|
||||
|
||||
if (parent) {
|
||||
parent.appendChild(this.element);
|
||||
parent.appendChild(this.screen);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user