From 096b90fa7d8782e82084c222a7eb3b66169d80f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20G=C3=A4rtner?= Date: Thu, 9 Mar 2017 18:42:40 +0100 Subject: [PATCH] feat: Deprecated marriage attribute. Use marriages instead now. #26 --- src/dtree.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/dtree.js b/src/dtree.js index d8a6cf5..f09e96e 100644 --- a/src/dtree.js +++ b/src/dtree.js @@ -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);