Merge pull request #523 from sourcelair/Tyriar-patch-1

Add null check on Terminal.element
This commit is contained in:
Daniel Imms
2017-02-02 08:53:40 -08:00
committed by GitHub
+1 -1
View File
@@ -1045,7 +1045,7 @@ Terminal.prototype.destroy = function() {
this._events = {};
this.handler = function() {};
this.write = function() {};
if (this.element.parentNode) {
if (this.element && this.element.parentNode) {
this.element.parentNode.removeChild(this.element);
}
//this.emit('close');