 
     @displayCodeHighlights = atom.config.get('minimap.displayCodeHighlights')
 
-    atom.config.observe 'minimap.minimapScrollIndicator', =>
+    @subscriptions.add @asDisposable atom.config.observe 'minimap.minimapScrollIndicator', =>
       @miniScrollVisible = atom.config.get('minimap.minimapScrollIndicator')
       @miniScroller.toggleClass 'visible', @miniScrollVisible
 
-    atom.config.observe 'minimap.useHardwareAcceleration', =>
+    @subscriptions.add @asDisposable atom.config.observe 'minimap.useHardwareAcceleration', =>
       @updateScroll() if @ScrollView?
 
-    atom.config.observe 'minimap.displayCodeHighlights', =>
+    @subscriptions.add @asDisposable atom.config.observe 'minimap.displayCodeHighlights', =>
       newOptionValue = atom.config.get 'minimap.displayCodeHighlights'
       @setDisplayCodeHighlights(newOptionValue)
 

{$, View, EditorView} = require 'atom'
Delegato = require 'delegato'
{CompositeDisposable} = require 'event-kit'

MinimapRenderView = require './minimap-render-view'
MinimapIndicator = require './minimap-indicator'

  # transform - The css transformation {String}.
  transform: (el, transform) ->
    el.style.webkitTransform = el.style.transform = transform

  asDisposable: (subscription) -> new Disposable -> subscription.off()
