Fix trimming of debug log: remove first, use proper iteration var

FREEBIE
This commit is contained in:
Scott Nonnenberg
2017-07-21 14:45:26 -07:00
parent 80fd70de13
commit 87a1fcc406

View File

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