From 87a1fcc406ac261dfb4c7ef7a87a328285758dc9 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Fri, 21 Jul 2017 14:45:26 -0700 Subject: [PATCH] Fix trimming of debug log: remove first, use proper iteration var FREEBIE --- js/debugLog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/debugLog.js b/js/debugLog.js index 054f4006c..17989ffb8 100644 --- a/js/debugLog.js +++ b/js/debugLog.js @@ -39,8 +39,9 @@ for (var i = 0; i < toDrop; i += 1) { entries.push(this.at(i)); } + this.remove(entries); for (var j = 0, max = entries.length; j < max; j += 1) { - entries[i].destroy(); + entries[j].destroy(); } }, print: function() {