Skip to content

Commit 476bad0

Browse files
Move filledSlots variable
1 parent be27e21 commit 476bad0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,6 @@ let processCounter = 0;
166166
* @return {Object} PostHTML tree
167167
*/
168168
function processTree(options) {
169-
const filledSlots = {};
170-
171169
return (tree, messages) => {
172170
log(`Processing tree number ${processCounter}..`, 'processTree');
173171

@@ -176,6 +174,8 @@ function processTree(options) {
176174
}
177175

178176
match.call(tree, options.matcher, currentNode => {
177+
const filledSlots = {};
178+
179179
log(`Match found for tag "${currentNode.tag}"..`, 'processTree');
180180

181181
if (!currentNode.attrs) {

0 commit comments

Comments
 (0)