Skip to content

Commit

Permalink
added a missing "this."
Browse files Browse the repository at this point in the history
  • Loading branch information
jangdan committed Feb 16, 2016
1 parent 07f26ee commit 8e4be9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ Node.prototype.getDecendantByName = function(name){


Node.prototype.getChildrenByName = function(name){
return children.filter( function(child){ return child.name === name } );
return this.children.filter( function(child){ return child.name === name } );
}


Expand Down

0 comments on commit 8e4be9a

Please sign in to comment.