Skip to content

Commit

Permalink
💄
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Aug 30, 2019
1 parent 03da476 commit 1930ce7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/vs/editor/browser/config/charWidthReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ class DomCharWidthReader {
container.appendChild(italicDomNode);

const testElements: HTMLSpanElement[] = [];
for (let i = 0, len = this._requests.length; i < len; i++) {
const request = this._requests[i];
for (const request of this._requests) {

let parent: HTMLElement;
if (request.type === CharWidthRequestType.Regular) {
Expand All @@ -113,7 +112,7 @@ class DomCharWidthReader {
DomCharWidthReader._render(testElement, request);
parent!.appendChild(testElement);

testElements[i] = testElement;
testElements.push(testElement);
}

this._container = container;
Expand Down

0 comments on commit 1930ce7

Please sign in to comment.