minor. do not emit 'open'.
This commit is contained in:
+2
-1
@@ -431,6 +431,7 @@ Terminal.bindKeys = function(document) {
|
|||||||
if (!Terminal.focus) return;
|
if (!Terminal.focus) return;
|
||||||
|
|
||||||
var el = ev.target || ev.srcElement;
|
var el = ev.target || ev.srcElement;
|
||||||
|
if (!el) return;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if (el === Terminal.focus.element) return;
|
if (el === Terminal.focus.element) return;
|
||||||
@@ -531,7 +532,7 @@ Terminal.prototype.open = function(parent) {
|
|||||||
this.element.style.backgroundColor = Terminal.defaultColors.bg;
|
this.element.style.backgroundColor = Terminal.defaultColors.bg;
|
||||||
this.element.style.color = Terminal.defaultColors.fg;
|
this.element.style.color = Terminal.defaultColors.fg;
|
||||||
|
|
||||||
this.emit('open');
|
// this.emit('open');
|
||||||
};
|
};
|
||||||
|
|
||||||
// XTerm mouse events
|
// XTerm mouse events
|
||||||
|
|||||||
Reference in New Issue
Block a user