 
   activate: ->
     @objectEditor.activate()
-    @subscriptions = @objectEditor.editors.Path.on('mousedown:node', @onMouseDownNode.bind(this))
+    @subscriptions = new CompositeDisposable
+    @subscriptions.add @objectEditor.editors.Path.on('mousedown:node', @onMouseDownNode.bind(this))
+    @subscriptions.add @selectionModel.on('change:selected', @onChangedSelectedObject.bind(this))
     svg = @svgDocument.getSVGRoot()
     svg.on 'mousedown', @onMouseDown
     svg.on 'mousemove', @onMouseMove


  _unsetCurrentObject: ->
    @currentObjectSubscriptions?.dispose()
    @currentObject = null

  _unsetCurrentNode: ->

  deactivate: ->
    @objectEditor.deactivate()
    @subscriptions?.dispose()
    @_unsetCurrentObject()
    svg = @svgDocument.getSVGRoot()
    svg.off 'mousedown', @onMouseDown
    svg.off 'mousemove', @onMouseMove
    svg.off 'mouseup', @onMouseUp
    @active = false

  onChangedSelectedObject: ({object, old}) =>
    old.disableDragging() if old?

  onMouseDownNode: (event) ->
    {node} = event
