mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Create Dock element lazily to be compatible w/ snapshotting
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user