Skip to content

Commit 1a50d84

Browse files
committed
Fixes error on closing an image view pane
An ImageEditor is then received in the callback, but an image editor doesn’t have an off method.
1 parent dc372d1 commit 1a50d84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/minimap-view.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class MinimapView extends View
4545

4646
@subscribe @paneView.model.$activeItem, @onActiveItemChanged
4747
# Fixed item move to other pane.
48-
@subscribe @paneView.model, 'item-removed', (item) -> item.off '.minimap'
48+
@subscribe @paneView.model, 'item-removed', (item) -> item.off? '.minimap'
4949

5050
@subscribe @miniEditorView, 'minimap:updated', @updateMinimapView
5151

0 commit comments

Comments
 (0)