Skip to content
Snippets Groups Projects
Commit 6992c534 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

Change one let back to var to work around a Bublé issue

Issue #4261
parent c17d0230
No related branches found
No related tags found
No related merge requests found
......@@ -216,7 +216,7 @@ export function copyHistoryArray(events, newGroup, instantiateSel) {
for (let j = 0; j < changes.length; ++j) {
let change = changes[j], m
newChanges.push({from: change.from, to: change.to, text: change.text})
if (newGroup) for (let prop in change) if (m = prop.match(/^spans_(\d+)$/)) {
if (newGroup) for (var prop in change) if (m = prop.match(/^spans_(\d+)$/)) {
if (indexOf(newGroup, Number(m[1])) > -1) {
lst(newChanges)[prop] = change[prop]
delete change[prop]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment