post-hover.js: fix long loop
This commit is contained in:
parent
36c846242a
commit
f0ae0174c9
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user