Skip to content

Commit 9fcb690

Browse files
committed
Preps 2.1.1
1 parent ea80323 commit 9fcb690

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

commonjs/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ function reactTreeWalker(element, visitor, context) {
8686
// If its a react Children collection we need to breadth-first
8787
// traverse each of them.
8888
var mapper = function mapper(aChild) {
89-
return aChild ? reactTreeWalker(aChild, visitor, theChildContext) : undefined;
89+
return aChild ? reactTreeWalker(aChild, visitor, theChildContext, options) : undefined;
9090
};
9191
// pMapSeries allows us to do depth-first traversal. Thanks @sindresorhus!
9292
pMapSeries(_react.Children.map(child, function (cur) {
9393
return cur;
9494
}), mapper).then(resolve);
9595
} else {
9696
// Otherwise we pass the individual child to the next recursion.
97-
reactTreeWalker(child, visitor, theChildContext).then(resolve);
97+
reactTreeWalker(child, visitor, theChildContext, options).then(resolve);
9898
}
9999
};
100100

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-tree-walker",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "Walk a React element tree, executing a provided function against each node.",
55
"license": "MIT",
66
"main": "commonjs/index.js",

umd/react-tree-walker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,15 +175,15 @@ function reactTreeWalker(element, visitor, context) {
175175
// If its a react Children collection we need to breadth-first
176176
// traverse each of them.
177177
var mapper = function mapper(aChild) {
178-
return aChild ? reactTreeWalker(aChild, visitor, theChildContext) : undefined;
178+
return aChild ? reactTreeWalker(aChild, visitor, theChildContext, options) : undefined;
179179
};
180180
// pMapSeries allows us to do depth-first traversal. Thanks @sindresorhus!
181181
pMapSeries(_react.Children.map(child, function (cur) {
182182
return cur;
183183
}), mapper).then(resolve);
184184
} else {
185185
// Otherwise we pass the individual child to the next recursion.
186-
reactTreeWalker(child, visitor, theChildContext).then(resolve);
186+
reactTreeWalker(child, visitor, theChildContext, options).then(resolve);
187187
}
188188
};
189189

umd/react-tree-walker.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)