fix infinite loop when using ace with polymer

This commit is contained in:
nightwing 2014-01-30 22:55:40 +04:00
commit 2246da0021

View file

@ -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++;