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