From a563bdb65805730358eee5c7194ff4a9b46388eb Mon Sep 17 00:00:00 2001 From: Henri Astre Date: Wed, 18 Jun 2014 10:35:23 -0700 Subject: [PATCH] fix .close() called after .destroy() + spacing --- src/drawer.js | 31 ++++++++-------- src/mousetracker.js | 6 ++-- src/viewer.js | 26 +++++++++----- test/basic.js | 1 + test/demo/memory_check.html | 71 ------------------------------------- test/demo/memorycheck.html | 57 +++++++++++++++++++++++++++++ 6 files changed, 95 insertions(+), 97 deletions(-) delete mode 100644 test/demo/memory_check.html create mode 100644 test/demo/memorycheck.html diff --git a/src/drawer.js b/src/drawer.js index 95da18ce..10165ffb 100644 --- a/src/drawer.js +++ b/src/drawer.js @@ -303,21 +303,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 diff --git a/test/demo/memorycheck.html b/test/demo/memorycheck.html new file mode 100644 index 00000000..bebe80da --- /dev/null +++ b/test/demo/memorycheck.html @@ -0,0 +1,57 @@ + + + + OpenSeadragon Memory Check Demo + + + + +
+ Simple demo page to monitor OpenSeadragon Memory Usage. +
+ + + +
+ + +