]> git.parisson.com Git - pdf.js.git/commitdiff
intermediate variable for document.body
authornotmasteryet <async.processingjs@yahoo.com>
Fri, 23 Sep 2011 01:18:43 +0000 (20:18 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Fri, 23 Sep 2011 01:18:43 +0000 (20:18 -0500)
test/driver.js

index db6c9b5013481cc36b36b86066e37feaa4ced8fa..3e3097107d3eaaa40c2058dfdee6d2c5064c5555 100644 (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() {