Permalink
Browse files

Fixed issue with traverse and reverse order

  • Loading branch information...
doug-martin committed Feb 18, 2013
1 parent 7c17b4a commit da2f4280520dce0c3fdd4031e9a998c6504a47c4
Showing with 5 additions and 5 deletions.
  1. +2 −2 index.js
  2. +2 −2 leafy.min.js
  3. +1 −1 package.json
View
@@ -124,9 +124,9 @@
this.traverse(node.right, order, callback);
callback(node.data);
} else if (order === Tree.REVERSE_ORDER) {
- this.traverseWithCondition(node.right, order, callback);
+ this.traverse(node.right, order, callback);
callback(node.data);
- this.traverseWithCondition(node.left, order, callback);
+ this.traverse(node.left, order, callback);
}
}
Oops, something went wrong.

0 comments on commit da2f428

Please sign in to comment.