mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 04:39:06 +02:00
More concise change detection
This commit is contained in:
parent
8398d26d10
commit
5ba1ec0d3b
@ -481,9 +481,8 @@
|
||||
|
||||
// If entering, leaving, or changing elements, animate the change via pivot
|
||||
if ((this.lastActive.length !== this.active.length) ||
|
||||
(this.lastActive.length === this.active.length && changed) ||
|
||||
(this.lastTooltipActive.length !== this.tooltipActive.length) ||
|
||||
(this.lastTooltipActive.length === this.tooltipActive.length && changed)) {
|
||||
changed) {
|
||||
|
||||
this.stop();
|
||||
console.log('render');
|
||||
|
Loading…
Reference in New Issue
Block a user