Nits
This commit is contained in:
parent
9830cb935e
commit
29c21843d6
@ -59,12 +59,10 @@ function cleanup() {
|
|||||||
// Clear out all the stylesheets since a new one is created for each font.
|
// Clear out all the stylesheets since a new one is created for each font.
|
||||||
while (document.styleSheets.length > 0) {
|
while (document.styleSheets.length > 0) {
|
||||||
var styleSheet = document.styleSheets[0];
|
var styleSheet = document.styleSheets[0];
|
||||||
if (styleSheet) {
|
while (styleSheet.cssRules.length > 0)
|
||||||
while (styleSheet.cssRules.length > 0)
|
styleSheet.deleteRule(0);
|
||||||
styleSheet.deleteRule(0);
|
var ownerNode = styleSheet.ownerNode;
|
||||||
}
|
ownerNode.parentNode.removeChild(ownerNode);
|
||||||
var parent = styleSheet.ownerNode.parentNode;
|
|
||||||
parent.removeChild(styleSheet.ownerNode);
|
|
||||||
}
|
}
|
||||||
var guard = document.getElementById('content-end');
|
var guard = document.getElementById('content-end');
|
||||||
var body = document.body;
|
var body = document.body;
|
||||||
@ -75,7 +73,7 @@ function cleanup() {
|
|||||||
for (var i = 0; i < manifest.length; i++) {
|
for (var i = 0; i < manifest.length; i++) {
|
||||||
if (manifest[i].pdfDoc) {
|
if (manifest[i].pdfDoc) {
|
||||||
manifest[i].pdfDoc.destroy();
|
manifest[i].pdfDoc.destroy();
|
||||||
delete manifest[i].pdfDoc
|
delete manifest[i].pdfDoc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user