How to use the raf.reset function in raf

To help you get started, we’ve selected a few raf examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pivotal-cf / pivotal-ui / spec / pivotal-ui-react / spec_helper.js View on Github external
afterEach(() => {
  ReactDOM.unmountComponentAtNode(root);
  MockNextTick.next();
  jasmine.clock().tick(1);
  jasmine.clock().uninstall();
  MockPromises.contracts.reset();
  MockPromises.uninstall();
  MockNow.reset();
  MockRaf.reset();
});
github pivotal-cf / pivotal-ui / spec / pivotal-ui-react / spec_helper.js View on Github external
afterEach(function() {
  MockNow.reset();
  MockRaf.reset();
  jasmine.clock().uninstall();
});

raf

requestAnimationFrame polyfill for node and the browser

MIT
Latest version published 6 years ago

Package Health Score

74 / 100
Full package analysis