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

Minor doc fixes. #4557

Merged
merged 3 commits into from
Apr 21, 2017
Merged

Minor doc fixes. #4557

merged 3 commits into from
Apr 21, 2017

Conversation

sorvell
Copy link
Contributor

@sorvell sorvell commented Apr 21, 2017

Fixes #4553, #4554

*
* let job = Polymer.Debouncer.debounce(job, Polymer.Async.microTask, () => {
* console.log('debounced!');
* });

Choose a reason for hiding this comment

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

Isn't it important for the value of job to be preserved across multiple calls here? If I copy this code into an event handler, will it debounce correctly?

That is, wouldn't you usually store the job like this._job = Polymer.Debouncer.debounce(_job ...)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed. Updated with hopefully a more clear example.

@arthurevans
Copy link

👍 :shipit: 🎉

Copy link
Member

@kevinpschaaf kevinpschaaf left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants