Switch to textContent. Fix lint.

This commit is contained in:
Brendan Dahl 2012-02-08 16:38:43 -08:00
parent a5d9ff8568
commit 66052f2dd2
2 changed files with 4 additions and 4 deletions

View File

@ -409,6 +409,6 @@ var Bench = (function BenchClosure() {
}
return out;
}
}
};
return Bench;
})();

View File

@ -887,9 +887,9 @@ var PageView = function pageView(container, content, id, pageWidth, pageHeight,
if (!PDFJS.enableBench || !this.stats || PDFView.page != this.id)
return;
var stats = this.stats;
var statsHtml = 'Page ' + this.id + '\n';
statsHtml += stats.toString().replace(/\n/g, '<br>');
document.getElementById('info').innerHTML = statsHtml;
var statsText = 'Page ' + this.id + '\n';
statsText += stats.toString();
document.getElementById('info').textContent = statsText;
};
};