Use the debounce parameter instead of hard-coding 100

This commit is contained in:
Neil Lalonde 2013-10-28 16:15:45 -04:00
parent 8c882fd392
commit 8ea1a1069e

View File

@ -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();