提交 e56ea2f4 编写于 作者: B Benjamin Pasero

fix build

上级 aa2c1642
...@@ -57,15 +57,12 @@ export class Tree extends Events.EventEmitter implements _.ITree { ...@@ -57,15 +57,12 @@ export class Tree extends Events.EventEmitter implements _.ITree {
private model: Model.TreeModel; private model: Model.TreeModel;
private view: View.TreeView; private view: View.TreeView;
get onDOMFocus(): Event<FocusEvent> { return this.view.onDOMFocus; } private _onDispose: Emitter<void>;
get onDOMBlur(): Event<FocusEvent> { return this.view.onDOMBlur; }
private _onDispose: Emitter<void> = new Emitter<void>();
get onDispose(): Event<void> { return this._onDispose.event; }
constructor(container: HTMLElement, configuration: _.ITreeConfiguration, options: _.ITreeOptions = {}) { constructor(container: HTMLElement, configuration: _.ITreeConfiguration, options: _.ITreeOptions = {}) {
super(); super();
this._onDispose = new Emitter<void>();
this.container = container; this.container = container;
this.configuration = configuration; this.configuration = configuration;
this.options = options; this.options = options;
...@@ -87,6 +84,18 @@ export class Tree extends Events.EventEmitter implements _.ITree { ...@@ -87,6 +84,18 @@ export class Tree extends Events.EventEmitter implements _.ITree {
this.addEmitter2(this.view); this.addEmitter2(this.view);
} }
get onDOMFocus(): Event<FocusEvent> {
return this.view && this.view.onDOMFocus;
}
get onDOMBlur(): Event<FocusEvent> {
return this.view && this.view.onDOMBlur;
}
get onDispose(): Event<void> {
return this._onDispose && this._onDispose.event;
}
public getHTMLElement(): HTMLElement { public getHTMLElement(): HTMLElement {
return this.view.getHTMLElement(); return this.view.getHTMLElement();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册