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