We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.apply()
1 parent ca43d9b commit 5aaf59dCopy full SHA for 5aaf59d
src/static/js/Changeset.js
@@ -870,14 +870,14 @@ const textLinesMutator = (lines) => {
870
curLine++;
871
newLines.splice(0, 1);
872
// insert the remaining new lines
873
- Array.prototype.push.apply(curSplice, newLines);
+ curSplice.push(...newLines);
874
curLine += newLines.length;
875
// insert the remaining chars from the "old" line (e.g. the line we were in
876
// when we started to insert new lines)
877
curSplice.push(theLine.substring(lineCol));
878
curCol = 0; // TODO(doc) why is this not set to the length of last line?
879
} else {
880
881
882
}
883
0 commit comments