Show Menu
TOPICS×

dispose

JavaScript API reference for Mixed Media Viewer.
dispose()
Disposes this viewer instance by releasing all resources used by the viewer logic and deleting all inner objects and components created by the viewer in runtime.
The web page code should also delete the viewer instance variable as well to completely remove the viewer from the web browser memory.
If the web page code has registered event listeners directly on Viewer SDK components used by the viewer-or stored external references to such components-such listeners must be explicitly unregistered by the web page code, and such external component references must be deleted prior to calling dispose() .
Do not access the Viewer API any more after dispose() is called.

Parameters

None.

Returns

None.

Example

<instance>.dispose()