From 219ebea98b08a5f8b7463f3ef5ad81249863a7cb Mon Sep 17 00:00:00 2001 From: Katrina Uychaco Date: Thu, 24 Dec 2015 01:31:19 -0800 Subject: [PATCH] Fix bug in ::activate Item Check if isPending function exists on item before invoking. --- src/pane.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pane.coffee b/src/pane.coffee index 3b698c444..4e97e8bdc 100644 --- a/src/pane.coffee +++ b/src/pane.coffee @@ -343,7 +343,7 @@ class Pane extends Model # the pane's view. activateItem: (item) -> if item? - if @activeItem?.isPending() + if @activeItem?.isPending?() index = @getActiveItemIndex() @destroyActiveItem() else