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

intermediate variable for document.body

This commit is contained in:
notmasteryet 2011-09-22 20:18:43 -05:00
parent 107576d634
commit f3e4cf20cc

View file

@ -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() {