fix infinite loop when using ace with polymer
This commit is contained in:
parent
3dc20b0824
commit
2246da0021
1 changed files with 2 additions and 3 deletions
|
|
@ -364,9 +364,8 @@ var Text = function(parentEl) {
|
||||||
container.style.height = config.lineHeight * this.session.getRowLength(row) + "px";
|
container.style.height = config.lineHeight * this.session.getRowLength(row) + "px";
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
var lines = container.childNodes
|
while(container.firstChild)
|
||||||
while(lines.length)
|
fragment.appendChild(container.firstChild);
|
||||||
fragment.appendChild(lines[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue