Process sibling with children only

This commit is contained in:
Yang Lin 2016-11-25 02:23:06 +08:00
parent f1c1c089d2
commit 684d78cca0
1 changed files with 3 additions and 1 deletions

View File

@ -81,7 +81,9 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
if (sibling) {
if (isClonedNode(current, sibling)) {
if (isPureEnglish(current.textContent)) {
processContainer(sibling);
if (sibling.children) {
processContainer(sibling);
}
$current.addClass('original-english');
$sibling.addClass('translated');
$sibling.addClass('translated-cn');