     binding.destroy() for id,binding of @bindings
     @bindings = {}
 
+  asDisposable: (subscription) -> new Disposable -> subscription.off()
+
 module.exports = new MinimapGitDiff

    @pluginActive = false
    @subscriptions.dispose()
    @destroyBindings()

  createBindings: =>
    @minimapModule.eachMinimapView ({view}) =>

  activatePlugin: ->
    return if @pluginActive

    @activateBinding()
    @pluginActive = true

    @subscriptions.add @minimapModule.onDidActivate @activateBinding
    @subscriptions.add @minimapModule.onDidDeactivate @destroyBindings

  deactivatePlugin: ->
