Process all siblings

This commit is contained in:
Yang Lin 2016-11-25 01:59:39 +08:00
parent 20129e39d5
commit f1c1c089d2
1 changed files with 1 additions and 4 deletions

View File

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