diff options
author | Andrew Dolgov <[email protected]> | 2019-12-09 23:23:54 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-12-09 23:23:54 +0300 |
commit | 44ef447c0f3c4cd5d5bbd02b2971ea80422a8439 (patch) | |
tree | d4e75e3fa453da29765ed7cb1706b3c63ce00560 /js/Article.js | |
parent | e7dd634183154949fab7aa0b00844eb645cb87e5 (diff) |
fix fatal error in previous because of event not being passed via Headlines.move()
scrollbypages, etc: make event optional anyway
Diffstat (limited to 'js/Article.js')
-rw-r--r-- | js/Article.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/Article.js b/js/Article.js index 9c7ccf074..1b92c2965 100644 --- a/js/Article.js +++ b/js/Article.js @@ -338,7 +338,7 @@ define(["dojo/_base/declare"], function (declare) { elem = $("headlines-frame"); } - if (event.repeat) { + if (event && event.repeat) { elem.addClassName("forbid-smooth-scroll"); window.clearTimeout(this._scroll_reset_timeout); |