From: Tanner Linsley Date: Sun, 1 Nov 2015 00:17:06 +0000 (-0600) Subject: More concise change detection X-Git-Tag: 2.0.0-beta1~39^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ba1ec0d3b3cb53c3b8b6ac6c970722420d0abc7;p=thirdparty%2FChart.js.git More concise change detection --- diff --git a/src/core/core.controller.js b/src/core/core.controller.js index da478378c..dd3a05019 100644 --- a/src/core/core.controller.js +++ b/src/core/core.controller.js @@ -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');