Return a promise from Pane.destroyActiveItem

This commit is contained in:
Max Brunsfeld
2017-09-19 10:11:40 -07:00
parent 51ed51568c
commit 56926695ba

View File

@@ -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.