   # transform - The css transformation {String}.
   transform: (el, transform) ->
     el.style.webkitTransform = el.style.transform = transform
+
+  asDisposable: (subscription) -> new Disposable -> subscription.off()

    @editorView.scrollTop(top / @scaleY)


  # OTHER PRIVATE METHODS

  # Returns a {String} containing a css transform translation.
  #


    @displayCodeHighlights = atom.config.get('minimap.displayCodeHighlights')

    @subscriptions.add @asDisposable atom.config.observe 'minimap.minimapScrollIndicator', =>
      @miniScrollVisible = atom.config.get('minimap.minimapScrollIndicator')
      @miniScroller.toggleClass 'visible', @miniScrollVisible

    @subscriptions.add @asDisposable atom.config.observe 'minimap.useHardwareAcceleration', =>
      @updateScroll() if @ScrollView?

    @subscriptions.add @asDisposable atom.config.observe 'minimap.displayCodeHighlights', =>
      newOptionValue = atom.config.get 'minimap.displayCodeHighlights'
      @setDisplayCodeHighlights(newOptionValue)

