Fixes more

This commit is contained in:
Yang Lin 2016-11-25 01:42:21 +08:00
parent 14eb352ec5
commit ab5bc95df3
1 changed files with 6 additions and 14 deletions

View File

@ -57,8 +57,7 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
if (node.innerText === 'Back to top') {
var x = 0;
}
if (node.children.length > 0) {
// For <li><p>...</p></li>, processes it as block.
if (processContainer(node) <= 1) {
if (processBlock(node)) {
i++;
@ -66,13 +65,6 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
} else {
count++;
}
} else {
if (node.tagName === 'A' && node.classList.contains('to-top')) {
if (processBlock(node)) {
i++;
}
}
}
break;
}
}
@ -93,7 +85,7 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
if (sibling) {
if (sibling.tagName === 'LI') {
processBlock(sibling);
processContainer(sibling);
}
if (isClonedNode(current, sibling)) {