From 20129e39d58059082b39349ef5f489ac9cbd5046 Mon Sep 17 00:00:00 2001 From: Yang Lin Date: Fri, 25 Nov 2016 01:50:59 +0800 Subject: [PATCH] Fixes count --- public/translate/cn/translate.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/public/translate/cn/translate.js b/public/translate/cn/translate.js index f31c6571fe..4f031c9ea9 100644 --- a/public/translate/cn/translate.js +++ b/public/translate/cn/translate.js @@ -54,16 +54,11 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true'; processContainer(node); break; default: - if (node.innerText === 'Back to top') { - var x = 0; - } - if (processContainer(node) <= 1) { if (processBlock(node)) { i++; + count++; } - } else { - count++; } break; }