]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Remove the unused lastTimeRun from the animation service
authorEvert Timberg <evert.timberg@gmail.com>
Sun, 12 Apr 2015 00:47:35 +0000 (20:47 -0400)
committerEvert Timberg <evert.timberg@gmail.com>
Sun, 12 Apr 2015 00:47:35 +0000 (20:47 -0400)
src/Chart.Core.js

index e3a83ecab7a473f6cc0370233d827568740fe8f2..058236e5b033adf0eb5b4c501a39c13bf0a17708 100755 (executable)
                        for (var index = 0; index < this.animations.length; ++ index){
                                if (this.animations[index].chartInstance === chartInstance){
                                        // replacing an in progress animation
-                                       this.animations[index].lastTimeRun = null;
                                        this.animations[index].animationObject = animationObject;
                                        return;
                                }
                        
                        this.animations.push({
                                chartInstance: chartInstance,
-                               animationObject: animationObject,
-                               lastTimeRun: null
+                               animationObject: animationObject
                        });
 
                        // If there are no animations queued, manually kickstart a digest, for lack of a better word