Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error in Fn.throttle that broke MouseTimeDisplay #3833

Merged
merged 1 commit into from
Dec 5, 2016

Conversation

misteroneill
Copy link
Member

Description

This fixes a breakage in 5.14.0 of the MouseTimeDisplay UI that was caused by my work in 761b877

Specific Changes proposed

  • Make the Fn.throttle function actually work.
  • Add a test to verify and verify manually (which I did).

Requirements Checklist

  • Feature implemented / Bug fixed
  • Reviewed by Two Core Contributors

@misteroneill misteroneill added needs: LGTM Needs one or more additional approvals patch This PR can be added to a patch release. labels Dec 5, 2016
@@ -55,7 +55,7 @@ export const bind = function(context, fn, uid) {
* @return {Function}
*/
export const throttle = function(fn, wait) {
let last;
let last = Date.now();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

welp

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gkatsev gkatsev modified the milestone: 5.14 Dec 5, 2016
@gkatsev gkatsev added confirmed and removed needs: LGTM Needs one or more additional approvals labels Dec 5, 2016
@gkatsev gkatsev merged commit 014c6b8 into videojs:master Dec 5, 2016
@misteroneill misteroneill deleted the fix-mousetime branch December 6, 2016 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed patch This PR can be added to a patch release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants