Browse Source

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
pull/97/head
Jon Raymond Melchizedek Day 9 years ago
parent
commit
a9b20a2cf0
  1. 2
      dist/echo.js

2
dist/echo.js vendored

@ -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),

Loading…
Cancel
Save