Fix bug in ::activate Item

Check if isPending function exists on item before invoking.
This commit is contained in:
Katrina Uychaco
2015-12-24 01:31:19 -08:00
parent b24250289e
commit 219ebea98b

View File

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