cancelAnimationFramePolyfill.js.flow 643 B

123456789101112131415
  1. /**
  2. * Copyright (c) 2013-present, Facebook, Inc.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @providesModule cancelAnimationFramePolyfill
  8. */
  9. /**
  10. * Here is the native and polyfill version of cancelAnimationFrame.
  11. * Please don't use it directly and use cancelAnimationFrame module instead.
  12. */
  13. const cancelAnimationFrame = global.cancelAnimationFrame || global.webkitCancelAnimationFrame || global.mozCancelAnimationFrame || global.oCancelAnimationFrame || global.msCancelAnimationFrame || global.clearTimeout;
  14. module.exports = cancelAnimationFrame;