From f0ae0174c94f5637d1a5e804ce33fa666b4e9a67 Mon Sep 17 00:00:00 2001 From: czaks Date: Sun, 29 Dec 2013 18:32:58 +0100 Subject: [PATCH] post-hover.js: fix long loop --- js/post-hover.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/post-hover.js b/js/post-hover.js index 6d07e608..5bf3375f 100644 --- a/js/post-hover.js +++ b/js/post-hover.js @@ -30,8 +30,11 @@ onready(function(){ } var board = $(this); + var i = 0; while (board.data('board') === undefined) { board = board.parent(); + i++; + if (i >= 10) return; } var threadid; if ($link.is('[data-thread]')) threadid = 0;