From f0fb2c65b1ba9b0dbc60acac611daec3ee54b320 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Tue, 5 Nov 2019 04:11:53 -0800 Subject: [PATCH] Remove tension option backwards compatibility (#6692) --- docs/getting-started/v3-migration.md | 1 + src/controllers/controller.line.js | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/getting-started/v3-migration.md b/docs/getting-started/v3-migration.md index 8587554cf..04dfa426e 100644 --- a/docs/getting-started/v3-migration.md +++ b/docs/getting-started/v3-migration.md @@ -29,6 +29,7 @@ Chart.js is no longer providing the `Chart.bundle.js` and `Chart.bundle.min.js`. ### Options +* The dataset option `tension` was renamed to `lineTension` * `scales.[x/y]Axes.barPercentage` was moved to dataset option `barPercentage` * `scales.[x/y]Axes.barThickness` was moved to dataset option `barThickness` * `scales.[x/y]Axes.categoryPercentage` was moved to dataset option `categoryPercentage` diff --git a/src/controllers/controller.line.js b/src/controllers/controller.line.js index 41066c011..59793279e 100644 --- a/src/controllers/controller.line.js +++ b/src/controllers/controller.line.js @@ -82,11 +82,6 @@ module.exports = DatasetController.extend({ // Update Line if (showLine) { - // Compatibility: If the properties are defined with only the old name, use those values - if (config.tension !== undefined && config.lineTension === undefined) { - config.lineTension = config.tension; - } - // Utility line._datasetIndex = me.index; // Data -- 2.47.2