From a9b20a2cf01eb17df40dad0ccb7f4f489922a514 Mon Sep 17 00:00:00 2001 From: Jon Raymond Melchizedek Day Date: Fri, 20 Nov 2015 12:46:57 -0800 Subject: [PATCH] Fixed timing out of echo.js parseInt(opt || fallback, 10); was defaulting the timeout of echo.js to 10 milliseconds which caused echo.js to not work on longer loading pages. delay = optionToInt(opts.throttle, 250); will now either take the delay that the user has chosen or default to 250 milliseconds --- dist/echo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/echo.js b/dist/echo.js index 1093dd4..0dace0c 100644 --- a/dist/echo.js +++ b/dist/echo.js @@ -49,7 +49,7 @@ var offsetVertical = opts.offsetVertical || offsetAll; var offsetHorizontal = opts.offsetHorizontal || offsetAll; var optionToInt = function (opt, fallback) { - return parseInt(opt || fallback, 10); + return parseInt(opt || fallback); }; offset = { t: optionToInt(opts.offsetTop, offsetVertical),