1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 23:28:06 +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

@ -1258,7 +1258,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
return CanvasGraphics;
})();
if (!isWorker) {
function checkPutBinaryImageDataCompatibility() {
// Feature detection if the browser can use an Uint8Array directly as imgData.
var canvas = document.createElement('canvas');
canvas.width = 1;
@ -1293,3 +1293,6 @@ if (!isWorker) {
};
}
}
if (!isWorker) {
checkPutBinaryImageDataCompatibility();
}