]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Use findNextWhere correctly.
authorEvert Timberg <evert.timberg@gmail.com>
Sun, 12 Apr 2015 03:05:05 +0000 (23:05 -0400)
committerEvert Timberg <evert.timberg@gmail.com>
Sun, 12 Apr 2015 03:05:05 +0000 (23:05 -0400)
src/Chart.Core.js

index 6ee080607cb271edfe252893ea946254ebed3dd0..fcdc7763693753ae1787bc1eb3f015ea84a0784c 100755 (executable)
                                return animationWrapper.chartInstance === chartInstance;
                        });
                        
-                       if (index != -1)
+                       if (index)
                        {
                                this.animations.splice(index, 1);
                        }