]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix controller specific animations (#8444)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Wed, 17 Feb 2021 20:29:12 +0000 (22:29 +0200)
committerGitHub <noreply@github.com>
Wed, 17 Feb 2021 20:29:12 +0000 (15:29 -0500)
src/core/core.config.js

index d30ed3296b3b1905ec4714c73096a0f77bdcf580..8a47782c9f2657f24900a43839d2a4f2c2a01a00 100644 (file)
@@ -173,7 +173,12 @@ export default class Config {
         */
   datasetScopeKeys(datasetType) {
     return cachedKeys(datasetType,
-      () => [`datasets.${datasetType}`, `controllers.${datasetType}.datasets`, '']);
+      () => [
+        `datasets.${datasetType}`,
+        `controllers.${datasetType}`,
+        `controllers.${datasetType}.datasets`,
+        ''
+      ]);
   }
 
   /**
@@ -186,6 +191,7 @@ export default class Config {
     return cachedKeys(`${datasetType}.animation`,
       () => [
         `datasets.${datasetType}.animation`,
+        `controllers.${datasetType}.animation`,
         `controllers.${datasetType}.datasets.animation`,
         'animation'
       ]);