]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
More concise change detection
authorTanner Linsley <tannerlinsley@gmail.com>
Sun, 1 Nov 2015 00:17:06 +0000 (18:17 -0600)
committerTanner Linsley <tannerlinsley@gmail.com>
Sun, 1 Nov 2015 00:17:06 +0000 (18:17 -0600)
src/core/core.controller.js

index da478378c42cdfab7cae36e8c496e60744894b33..dd3a05019e2f5c01d9e71145e1389835b3949921 100644 (file)
 
                                // 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');