We have created a single page application using the Creative Cloud Web SDK in conjunction with AngularJS. Right now we're having an issue where references to the editor's elements seem to persist in the page even after the editor has been removed, and the state/view (we are using UI-Router) has been changed. If the application then relaunches the editor it creates new DOM objects, and event listeners. The .close() function built into the editor just seems to hide the editor, and doesn't actually remove it.
Is there a way to properly close the editor so that it can be safely relaunched on the same page, without causing memory leaks due to increasing amounts of DOM objects?
Perhaps keeping the editor's elements on the page but hidden regardless of everything else that is going on? That way it shouldn't be creating a new editor each time it needs to be launched.
Thank you for your time.