Explorar o código

Scroll as read minor variable

Alexandre Alapetite %!s(int64=9) %!d(string=hai) anos
pai
achega
f766f34775
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      p/scripts/main.js

+ 3 - 2
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);
 				}
 			});
 		});