mirror of
https://github.com/atom/atom.git
synced 2026-02-03 11:14:59 -05:00
Fix bug in ::activate Item
Check if isPending function exists on item before invoking.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user