From df88d7cc0ddcbd5379d882115bd9350dcc243c20 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Thu, 2 Jan 2014 15:27:58 -0500 Subject: Change all text to i18n. --- www/js/i18n.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'www/js') diff --git a/www/js/i18n.js b/www/js/i18n.js index 1d8f046..692104d 100644 --- a/www/js/i18n.js +++ b/www/js/i18n.js @@ -6,8 +6,7 @@ html5ks.i18n = { for (var k in uiStrings) { var e = document.getElementsByClassName(k); for (var i = e.length - 1; i >= 0; i--) { - var t = document.createTextNode(uiStrings[k]); - e[i].appendChild(t); + e[i].textContent = uiStrings[k]; } } }); -- cgit v1.2.3-70-g09d2