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";
|
||||
|
||||
} else {
|
||||
var lines = container.childNodes
|
||||
while(lines.length)
|
||||
fragment.appendChild(lines[0]);
|
||||
while(container.firstChild)
|
||||
fragment.appendChild(container.firstChild);
|
||||
}
|
||||
|
||||
row++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue