1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 07:08:08 +02:00

Cleanup references to dom elements.

This commit is contained in:
Brendan Dahl 2012-08-08 09:07:31 -07:00
parent 70beb11a50
commit 2ca8c0d999
2 changed files with 5 additions and 1 deletions

View file

@ -1707,6 +1707,7 @@ var TextLayerBuilder = function textLayerBuilder(textLayerDiv) {
if (textDivs.length === 0) {
clearInterval(renderTimer);
renderingDone = true;
self.textLayerDiv = textLayerDiv = canvas = ctx = null;
return;
}
var textDiv = textDivs.shift();