Create Dock element lazily to be compatible w/ snapshotting

This commit is contained in:
Max Brunsfeld
2017-03-24 15:29:46 -07:00
parent 51b40edebd
commit 93ba6109fa

View File

@@ -55,11 +55,10 @@ module.exports = class Dock {
pane.onDidRemoveItem(this.handleDidRemovePaneItem.bind(this))
})
)
this.render(this.state)
}
getElement () {
if (!this.element) this.render(this.state);
return this.element
}