From b2a17eee4946c8d1e25bc691cd58359c4e62af83 Mon Sep 17 00:00:00 2001 From: "Jessica B. Hamrick" Date: Fri, 30 Oct 2015 17:20:03 -0700 Subject: [PATCH] Set a default rate limit --- notebook/static/notebook/js/scrollmanager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/notebook/static/notebook/js/scrollmanager.js b/notebook/static/notebook/js/scrollmanager.js index b8de37188..89144ccea 100644 --- a/notebook/static/notebook/js/scrollmanager.js +++ b/notebook/static/notebook/js/scrollmanager.js @@ -18,6 +18,7 @@ define(['jquery'], function($){ * Register a function to be called when the page is scrolled, throttled * at a particular rate limit. */ + rate = rate || 100; // default rate limit this.element.scroll(function () { clearTimeout(func._timeout); func._timeout = setTimeout(func, rate);