]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
remove unused cancel animation frame method
authorEvert Timberg <evert.timberg+github@gmail.com>
Thu, 10 Nov 2016 00:53:20 +0000 (19:53 -0500)
committerEvert Timberg <evert.timberg+github@gmail.com>
Sun, 13 Nov 2016 13:16:40 +0000 (08:16 -0500)
src/core/core.helpers.js

index f085290c0459b6c5c1f99e853b872b9d27e7fafe..542088f610bc31aa581694785d5377aef49390c2 100644 (file)
@@ -671,16 +671,6 @@ module.exports = function(Chart) {
                                return window.setTimeout(callback, 1000 / 60);
                        };
        }());
-       helpers.cancelAnimFrame = (function() {
-               return window.cancelAnimationFrame ||
-                       window.webkitCancelAnimationFrame ||
-                       window.mozCancelAnimationFrame ||
-                       window.oCancelAnimationFrame ||
-                       window.msCancelAnimationFrame ||
-                       function(callback) {
-                               return window.clearTimeout(callback, 1000 / 60);
-                       };
-       }());
        // -- DOM methods
        helpers.getRelativePosition = function(evt, chart) {
                var mouseX, mouseY;