 
   # Toggles the minimap display.
   toggle: ->
+    return unless @active
     if @toggled
       @toggled = false
       @editorsMinimaps?.forEach (value, key) =>

      @editorsMinimaps.delete(key)
    @editorsMinimaps = undefined
    @toggled = false

  # Verifies that the passed-in version expression is satisfied by
  # the current minimap version.


  # Activates the minimap package.
  activate: ->
    @active = true
    @toggle() if atom.config.get 'minimap.autoToggle'

  # Deactivates the minimap package.
