From a7aa405d77558751923243657ec7a8dd671b3e31 Mon Sep 17 00:00:00 2001 From: Borys Levytskyi Date: Mon, 6 Apr 2015 20:08:27 +0300 Subject: [PATCH] Fixed bug in firefox --- app/modelViews.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/modelViews.js b/app/modelViews.js index 939d004..f32c44a 100644 --- a/app/modelViews.js +++ b/app/modelViews.js @@ -39,8 +39,8 @@ app.compose(function () { var binCell = row.insertCell(); binCell.className = 'bin'; - decCell.innerText = o; - binCell.innerText = formatter.toBinaryString(o, maxLen); + decCell.textContent = o; + binCell.textContent = formatter.toBinaryString(o, maxLen); }); colorizeBits(table); @@ -86,7 +86,7 @@ app.compose(function () { function colorizeBits(container) { var list = container.querySelectorAll('.bin'); Array.prototype.forEach.call(list, function(el){ - var bin = el.innerText; + var bin = el.textContent; el.innerHTML = bin .replace(/(\d{8})/g, '$1')