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

dom-repeat docs don't say the units for the delay parameter #4707

Closed
davidmaxwaterman opened this issue Jun 23, 2017 · 0 comments
Closed

dom-repeat docs don't say the units for the delay parameter #4707

davidmaxwaterman opened this issue Jun 23, 2017 · 0 comments

Comments

@davidmaxwaterman
Copy link

https://www.polymer-project.org/1.0/docs/api/elements/dom-repeat

delay : number 
When using a filter or sort function, the delay property determines a debounce time after a change to observed item properties that must pass before the filter or sort is re-run. This is useful in rate-limiting shuffing of the view when item changes may be frequent

and the same for 2.0 I notice:

https://www.polymer-project.org/2.0/docs/api/elements/Polymer.DomRepeat

I do notice the comment for the debouncer function in the code mentions ms :

https://github.com/Polymer/polymer/blob/master/lib/elements/dom-repeat.html#L457

I suppose ms would always be my a dev's first guess, but I don't think the dev should be expected to guess, or dig into the code to find this out.

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

No branches or pull requests

4 participants