Putting the click handler on the document like that causes `clickEdge.tossboss-graph-view` to be fired multiple times per click. This is because every time the optimized / unoptimized graph is re-rendered the click handler gets registered another time.

Now the click handler is registered per object added to the graph