Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
feat(node.js): convert parent fn to property via get
Browse files Browse the repository at this point in the history
  • Loading branch information
stfsy committed Mar 27, 2017
1 parent d955c90 commit b95bf36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class Node {
* Returns the parent node of this node
* @returns {Node}
*/
parent() {
get parent() {

return new Node(this.get().parent)
}
Expand Down

0 comments on commit b95bf36

Please sign in to comment.