-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,7 +93,6 @@ class Main | |
|
||
# Activates the minimap package. | ||
activate: -> | ||
@subscriptions = new CompositeDisposable | ||
This comment has been minimized.
Sorry, something went wrong. |
||
MinimapElement ?= require './minimap-element' | ||
|
||
MinimapElement.registerViewProvider() | ||
|
@@ -130,7 +129,10 @@ class Main | |
toggle: -> | ||
if @toggled | ||
@toggled = false | ||
@subscriptions.dispose() | ||
This comment has been minimized.
Sorry, something went wrong.
abe33
Contributor
|
||
@editorsMinimaps?.forEach (value, key) => | ||
value.destroy() | ||
@editorsMinimaps.delete(key) | ||
This comment has been minimized.
Sorry, something went wrong.
abe33
Contributor
|
||
@editorsMinimaps = undefined | ||
else | ||
@toggled = true | ||
@initSubscriptions() | ||
|
Instead of the constructor I believe we should move that line into
initSubscriptions
so that we recreate one every time the minimap is toggled on