From 56926695ba359cd10eeba50ed349c8f1853d8160 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 19 Sep 2017 10:11:40 -0700 Subject: [PATCH] Return a promise from Pane.destroyActiveItem --- src/pane.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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.