diff --git a/src/drawer.js b/src/drawer.js index 54b07281..95da18ce 100644 --- a/src/drawer.js +++ b/src/drawer.js @@ -302,7 +302,22 @@ $.Drawer.prototype = /** @lends OpenSeadragon.Drawer.prototype */{ */ canRotate: function() { return this.useCanvas; - } + }, + + /** + * Destroy the drawer (unload current loaded tiles) + */ + destroy: function() { + + //unload current loaded tiles (=empty TILE_CACHE) + for (var i=0; i + + + OpenSeadragon Memory Check Demo + + + + +
+ Simple demo page to monitor OpenSeadragon Memory Usage. +
+ + + +
+ + + \ No newline at end of file