Skip to content

v2.0.0

Compare
Choose a tag to compare
@devrelm devrelm released this 27 Sep 02:42
· 63 commits to master since this release

Build Status Coverage Status

Added

Changed

  • Converted project to TypeScript
  • Renamed main file from throttle.js to frame-throttle.js
  • Moved main file from base directory to dist directory
  • throttle method is now a module member rather than the entire module.
    This means that you must now use:
    // Correct var throttle = require('frame-throttle').throttle;
    rather than
    // Wrong! var throttle = require('frame-throttle');
  • The throttled listener now passes its this context to the callback
  • The callback is now passed the arguments for the most recent call to the
    throttled method rather than being passed the oldest arguments.
    This only happens when requestAnimationFrame is present.

Known Issues

  • package.json was misconfigured and didn't include the correct files