diff --git a/src/pane.js b/src/pane.js index f56c1c88b..0305b39dd 100644 --- a/src/pane.js +++ b/src/pane.js @@ -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.