diff options
| author | 2016-10-13 23:38:25 +0200 | |
|---|---|---|
| committer | 2016-10-13 23:38:25 +0200 | |
| commit | f766f34775c7162058b929b397ac7fd20dc885b2 (patch) | |
| tree | b4b6fdf46708315c84416d2585b42bda3d16503d /p/scripts | |
| parent | b4298f498f8afb5c5ac0bfa65bb628cf47561a21 (diff) | |
Scroll as read minor variable
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/main.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index b2bd994ad..75d194906 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -463,8 +463,9 @@ function init_posts() { if (context.auto_mark_scroll) { box_to_follow.scroll(function () { $('.not_read:visible').each(function () { - if (inMarkViewport($(this), box_to_follow)) { - mark_read($(this), true); + var $this = $(this); + if (inMarkViewport($this, box_to_follow)) { + mark_read($this, true); } }); }); |
