mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Return a promise from Pane.destroyActiveItem
This commit is contained in:
@@ -728,9 +728,10 @@ class Pane {
|
||||
}
|
||||
|
||||
// Public: Destroy the active item and activate the next item.
|
||||
//
|
||||
// Returns a {Promise} that resolves when the item is destroyed.
|
||||
destroyActiveItem () {
|
||||
this.destroyItem(this.activeItem)
|
||||
return false
|
||||
return this.destroyItem(this.activeItem)
|
||||
}
|
||||
|
||||
// Public: Destroy the given item.
|
||||
|
||||
Reference in New Issue
Block a user