From: Evert Timberg Date: Sun, 12 Apr 2015 03:05:05 +0000 (-0400) Subject: Use findNextWhere correctly. X-Git-Tag: v2.0-alpha~37^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c476db0dd7269ef47e36162b3f9ab2323f409d2e;p=thirdparty%2FChart.js.git Use findNextWhere correctly. --- diff --git a/src/Chart.Core.js b/src/Chart.Core.js index 6ee080607..fcdc77636 100755 --- a/src/Chart.Core.js +++ b/src/Chart.Core.js @@ -2098,7 +2098,7 @@ return animationWrapper.chartInstance === chartInstance; }); - if (index != -1) + if (index) { this.animations.splice(index, 1); }