Skip to content

Commit 6992c53

Browse files
committed
Change one let back to var to work around a Bublé issue
Issue codemirror#4261
1 parent c17d023 commit 6992c53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/model/history.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export function copyHistoryArray(events, newGroup, instantiateSel) {
216216
for (let j = 0; j < changes.length; ++j) {
217217
let change = changes[j], m
218218
newChanges.push({from: change.from, to: change.to, text: change.text})
219-
if (newGroup) for (let prop in change) if (m = prop.match(/^spans_(\d+)$/)) {
219+
if (newGroup) for (var prop in change) if (m = prop.match(/^spans_(\d+)$/)) {
220220
if (indexOf(newGroup, Number(m[1])) > -1) {
221221
lst(newChanges)[prop] = change[prop]
222222
delete change[prop]

0 commit comments

Comments
 (0)