mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
remove unused cancel animation frame method
This commit is contained in:
parent
9ac0293b1a
commit
68a2c8240f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user