LinkRelinked Event; get the disconnected node information

Hey
I am using the Tree Layout and model.

"LinkRelinked", the user has just reconnected an existing Link using RelinkingTool or DraggingTool; the DiagramEvent.subject is the modified Link, the DiagramEvent.parameter is the GraphObject port that the link was disconnected from, and this is called within a transaction.

The parameter is the port - but i cant seem to find a way to actually get the disconnected node, to get the model data.
What i really need is the model data associated to the disconnected port so i can clean up some data after relink

thx

For any GraphObject, obj.part should be the Part that it’s in. Presumably in your case that will be a Node.

So then obj.part.data will be the model data object that you’re looking for.