Merge pull request #385 from notmasteryet/tree-7

Fix insertAdjacentHTML for pre FF8
This commit is contained in:
Andreas Gal 2011-08-25 17:42:19 -07:00
commit 8998adfc17

View File

@ -221,7 +221,10 @@ function checkScrolling() {
}
function log(str) {
stdout.insertAdjacentHTML('BeforeEnd', str);
if (stdout.insertAdjacentHTML)
stdout.insertAdjacentHTML('BeforeEnd', str);
else
stdout.innerHTML += str;
if (str.lastIndexOf('\n') >= 0)
checkScrolling();