]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Remove tension option backwards compatibility (#6692)
authorBen McCann <322311+benmccann@users.noreply.github.com>
Tue, 5 Nov 2019 12:11:53 +0000 (04:11 -0800)
committerEvert Timberg <evert.timberg+github@gmail.com>
Tue, 5 Nov 2019 12:11:53 +0000 (07:11 -0500)
docs/getting-started/v3-migration.md
src/controllers/controller.line.js

index 8587554cfa611642cbfa2d7c413b720bcaa95dbb..04dfa426eee51b78c64eeb5b00898e1aa0e8b2d1 100644 (file)
@@ -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`
index 41066c0118ac5aaebb09dcfd958be9842677fa6b..59793279eb4ed3fb0a9e249e8c0146ba8d420ac6 100644 (file)
@@ -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