mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Use the debounce parameter instead of hard-coding 100
This commit is contained in:
parent
8c882fd392
commit
8ea1a1069e
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ Discourse.Scrolling = Em.Mixin.create({
|
|||
if (opts.debounce) {
|
||||
onScrollMethod = Discourse.debounce(function() {
|
||||
return scrollingMixin.scrolled();
|
||||
}, 100);
|
||||
}, opts.debounce);
|
||||
} else {
|
||||
onScrollMethod = function() {
|
||||
return scrollingMixin.scrolled();
|
||||
|
|
Loading…
Reference in a new issue