Skip to content

Commit 4a9f426

Browse files
committed
fix eachPaneViewSubscription is undefined and have no off method, #62
1 parent 21622d0 commit 4a9f426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mixins/view-management.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ViewManagement extends Mixin
4242
# Internal: Destroys all views currently in use.
4343
destroyViews: ->
4444
view.destroy() for id, view of @minimapViews
45-
@eachPaneViewSubscription.off()
45+
@eachPaneViewSubscription?.off()
4646
@minimapViews = {}
4747

4848
# Internal: Registers to each pane view existing or to be created and creates

0 commit comments

Comments
 (0)