Blame view

node_modules/zrender/src/animation/requestAnimationFrame.js 461 Bytes
aaac7fed   liuqimichale   add
1
2
3
4
5
6
7
8
9
10
11
12
13
  
  export 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);
  };