From cfbe0332ba232cce6fd374fd05f22a4102275a08 Mon Sep 17 00:00:00 2001 From: Tom Ashworth Date: Mon, 15 Jul 2013 15:58:50 +0100 Subject: [PATCH] Reset the loop counters before every render. --- public/js/runner/runner.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/js/runner/runner.js b/public/js/runner/runner.js index 94674412..a4334c96 100644 --- a/public/js/runner/runner.js +++ b/public/js/runner/runner.js @@ -88,6 +88,9 @@ var runner = (function () { protect: loopProtect.protect }; + // Reset the loop protection before rendering + loopProtect.reset(); + // Write the source out. IE crashes if you have lots of these, so that's // why the source is rendered above (processor.render) – it should be one // string. IE's a sensitive soul.