   convertNode: (id, node) ->
     data = node.toJSON()
     data.graph = id
+    return data
   convertEdge: (id, edge) ->
     data = edge.toJSON()
     edgeData =

        port: bang.port
      graph: id

  subscribeEditor: (editor, runtime) ->
    id = editor.$.graph.graphId
    editor.addEventListener 'addnode', (node) =>
      return unless @connected
      runtime.sendGraph 'addnode', @convertNode id, node.detail

      @sendGraph runtime, editor
    runtime.on 'disconnected', =>
      @connected = false
    graph = editor.toJSON()
    @subscribeEditor graph.id, editor, runtime

    runtime.on 'component', (message) ->
      if message.payload.name is 'Graph' or message.payload.name is 'ReadDocument'
