Skip to content

Commit

Permalink
Check constructor instead of instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
hackergrrl committed May 24, 2016
1 parent 47d3d42 commit 6d21cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dag-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = class DAGNode {
// ensure links are instances of DAGLink
if (links) {
links.forEach((l) => {
if (l instanceof DAGLink) {
if (l.constructor && l.constructor.name === 'DAGLink') {
this.links.push(l)
} else {
this.links.push(
Expand Down

0 comments on commit 6d21cbf

Please sign in to comment.