Commit 7a2f3420 7a2f3420208b5a46d977a4a95ee3ad72921a427b by Nicolas Perriault

backport of 83472789 to 0.6 branch - refs #34

1 parent ecf8efe1
......@@ -208,6 +208,7 @@ Casper.prototype = {
} else {
self.result.time = new Date().getTime() - self.startTime;
self.log("Done " + self.steps.length + " steps in " + self.result.time + 'ms.', "info");
self.page.content = ''; // avoid having previously loaded DOM contents being still active (refs #34)
clearInterval(self.checker);
if (utils.isType(onComplete, "function")) {
try {
......