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

  activatePlugin: ->
    return if @pluginActive

    @createBindings()

    @pluginActive = true

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

  deactivatePlugin: ->

    @minimap = atom.packages.getLoadedPackage('minimap')

    return @deactivate() unless @gitDiff? and @minimap?

    @minimapModule = require @minimap.path

