]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
add afterDatasetDraw in correct place 2680/head
authorEvert Timberg <evert.timberg+github@gmail.com>
Wed, 1 Jun 2016 11:18:27 +0000 (07:18 -0400)
committerEvert Timberg <evert.timberg+github@gmail.com>
Wed, 1 Jun 2016 11:18:27 +0000 (07:18 -0400)
src/core/core.controller.js

index 1954755141f06b7d1eaca4596426a55e02114722..0e103d2bdb45127f0eaeeb9c1dbdd952069126df 100644 (file)
@@ -297,12 +297,12 @@ module.exports = function(Chart) {
                                }
                        }, this, true);
 
-                       Chart.pluginService.notifyPlugins('afterElementDraw', [this, easingDecimal]);
+                       Chart.pluginService.notifyPlugins('afterDatasetDraw', [this, easingDecimal]);
 
                        // Finally draw the tooltip
                        this.tooltip.transition(easingDecimal).draw();
 
-                       Chart.pluginService.notifyPlugins('afterDatasetDraw', [this, easingDecimal]);
+                       Chart.pluginService.notifyPlugins('afterDraw', [this, easingDecimal]);
                },
 
                // Get the single element that was clicked on