Skip to content

Commit

Permalink
export 'parents' to context
Browse files Browse the repository at this point in the history
  • Loading branch information
harthur committed Jul 22, 2011
1 parent 4a6285f commit 5af2f8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ function walk (root, cb, immutable) {
node_ : node_,
path : [].concat(path),
parent : parents[parents.length - 1],
parents : parents,
key : path.slice(-1)[0],
isRoot : path.length === 0,
level : path.length,
Expand Down

0 comments on commit 5af2f8d

Please sign in to comment.