Improve comment for destroy() method.

This commit is contained in:
Henri Astre 2014-06-18 12:56:36 -07:00
parent a563bdb658
commit f86f9063fd

View File

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