diff --git a/src/viewer.js b/src/viewer.js index cb8e295f..7ba1e7c0 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -578,8 +578,17 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, /** - * Function to destroy the viewer and clean up everything created by - * OpenSeadragon. + * Function to destroy the viewer and clean up everything created by OpenSeadragon. + * + * Example: + * var viewer = OpenSeadragon({ + * [...] + * }); + * + * //when you are done with the viewer: + * viewer.destroy(); + * viewer = null; //important + * * @function */ destroy: function( ) {