Skip to content

Commit

Permalink
feat: Deprecated marriage attribute. Use marriages instead now. #26
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikGartner committed Mar 9, 2017
1 parent 9d788b3 commit 096b90f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/dtree.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,6 @@ const dTree = {

parent.children.push(node);

// DEPRECATED: Backwards-compatability for v1.x syntax, remove for 2.0
if (person.marriage) {
console.log('DEPRECATED: The data attribute "marriage" is deprecated in favor of "marriages" that takes an array. It will be removed in 2.0.');
person.marriages = [person.marriage];
}

//sort marriages
dTree._sortMarriages(person.marriages, opts);

Expand Down

0 comments on commit 096b90f

Please sign in to comment.