mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-24 22:26:10 +03:00
Merge pull request #2162 from pearcetm/imagetilesource-bugfix
Bugfix for imagetilesource _freeupCanvasMemory
This commit is contained in:
commit
15ef58a8f5
@ -272,9 +272,11 @@
|
|||||||
*/
|
*/
|
||||||
_freeupCanvasMemory: function () {
|
_freeupCanvasMemory: function () {
|
||||||
for (var i = 0; i < this.levels.length; i++) {
|
for (var i = 0; i < this.levels.length; i++) {
|
||||||
|
if(this.levels[i].context2D){
|
||||||
this.levels[i].context2D.canvas.height = 0;
|
this.levels[i].context2D.canvas.height = 0;
|
||||||
this.levels[i].context2D.canvas.width = 0;
|
this.levels[i].context2D.canvas.width = 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user