Skip to content

A free, self-hostable news aggregator…

Scroll as read minor variable

Alexandre Alapetitef766f34775c7
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);
}
});
});