post-hover.js: fix long loop

This commit is contained in:
czaks committed 2013-12-29 18:32:58 +01:00
1 parent 36c846242a
commit f0ae0174c9
1 file changed
+3
+3
View File
@@ -30,8 +30,11 @@ onready(function(){
} }
var board = $(this); var board = $(this);
var i = 0;
while (board.data('board') === undefined) { while (board.data('board') === undefined) {
board = board.parent(); board = board.parent();
i++;
if (i >= 10) return;
} }
var threadid; var threadid;
if ($link.is('[data-thread]')) threadid = 0; if ($link.is('[data-thread]')) threadid = 0;