Skip to content

Allow immediate invocation of wrapped function - #1949

Closed
lexander wants to merge 1 commit into
yui:masterfrom
lexander:patch-11
Closed

Allow immediate invocation of wrapped function#1949
lexander wants to merge 1 commit into
yui:masterfrom
lexander:patch-11

Conversation

@lexander

Copy link
Copy Markdown
Contributor

Current version of throttle will prevent the immediate invocation of the wrapped function because the last var is being set to function creation time instead of being set upon the first invocation of the function.

I found this while running the unit tests that already exist for the class...

Current version of `throttle` will prevent the immediate invocation of the wrapped function because the `last` var is being set to function creation time instead of being set upon the first invocation of the function.

I found this while running the unit tests that already exist for the class...
@yahoocla

Copy link
Copy Markdown

CLA is valid!

@andrewnicols

Copy link
Copy Markdown
Contributor

Thanks for raising this @lexander, this is a duplicate of #1801 which I'll update and merge as soon as I possible.

Thanks for your work on this fix,

Andrew

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants