Blame view

node_modules/zrender/lib/animation/requestAnimationFrame.js 424 Bytes
aaac7fed   liuqimichale   add
1
2
3
4
5
6
  var _default = typeof window !== 'undefined' && (window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || // https://github.com/ecomfe/zrender/issues/189#issuecomment-224919809
  window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window) || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame) || function (func) {
    setTimeout(func, 16);
  };
  
  module.exports = _default;