Notification function called whenever an OdDgElement has been erased or unerased.
This function is called after the operation.