From 47d3710248dfe4dab9fb62a6fe7e90404e585c2a Mon Sep 17 00:00:00 2001 From: Carmine DiMascio Date: Mon, 26 Nov 2018 21:28:26 -0500 Subject: [PATCH] fix next sibling check --- src/cleaner.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cleaner.coffee b/src/cleaner.coffee index 781f189..6c87ccf 100644 --- a/src/cleaner.coffee +++ b/src/cleaner.coffee @@ -124,7 +124,7 @@ getReplacementNodes = (doc, div) -> replacementText.push(outer) nodesToRemove.push(nextSiblingNode) nextSiblingNode.attr('grv-usedalready', 'yes') - previousSiblingNode = nextSiblingNode.next() + nextSiblingNode = nextSiblingNode.next() # otherwise else