提交 1930ce78 编写于 作者: A Alex Dima

💄

上级 03da4768
......@@ -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) {
......@@ -113,7 +112,7 @@ class DomCharWidthReader {
DomCharWidthReader._render(testElement, request);
parent!.appendChild(testElement);
testElements[i] = testElement;
testElements.push(testElement);
}
this._container = container;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册