mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
intermediate variable for document.body
This commit is contained in:
parent
107576d634
commit
f3e4cf20cc
1 changed files with 3 additions and 2 deletions
|
@ -57,8 +57,9 @@ function cleanup() {
|
|||
styleSheet.deleteRule(0);
|
||||
}
|
||||
var guard = document.getElementById('content-end');
|
||||
while (document.body.lastChild != guard)
|
||||
document.body.removeChild(document.body.lastChild);
|
||||
var body = document.body;
|
||||
while (body.lastChild != guard)
|
||||
body.removeChild(body.lastChild);
|
||||
}
|
||||
|
||||
function nextTask() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue