I'm writing an app that makes use of JointJS to display diagrams.
However, I want to be able to dynamically add and remove diagrams from a page. Adding new diagrams is fairly trivial, but when I remove diagrams, is it safe to remove the DOM elements and let the graph and paper objects get garbage collected?