Skip to content

Commit

Permalink
Fixed Off-By-One Bug in Highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayson Vantuyl committed Mar 3, 2009
1 parent 552a6a6 commit 86fa4a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/interact.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ $(function(){
do {
if (parent.hasClass('hotzone')) {
parent.addClass('hovered' + i);
i++;
targets = parent.attr('target').split(',');
for (j = 0; j<targets.length; j++) {
var target = $('#comment_' + targets[j]);
target.addClass('thover' + i);
};
i++;
}
parent = parent.parent()
} while (parent.size());
Expand Down

0 comments on commit 86fa4a6

Please sign in to comment.