Skip to main content
deleted 1 character in body
Source Link
tbodt
  • 17k
  • 17
  • 22

I found the bug. Here's the relevant JavaScript:

renderScore: function (score) {
    var result = "";
    if (score && score > 0) {
        var css = score < 5 ? '' : score <= 15 ? 'warm' : score <= 30 ? 'hot' : 'supernova';
        result += '<span title="' + "number of 'useful comment' votes received" + '" class="' + css + '">' + score + '</span>';
    }
    this.jComment.find(".comment-score").html(result);
}

For some insufficient reason, "cool"'cool' was replaced by ""' in line 4 of that snippet. The result is that comments with a score of less than 5 end up with a class of ""'', instead of "cool"'cool'.

My best guess for why this happened is that someone removed the class at the request of a blackmailing unicorn.

I found the bug. Here's the relevant JavaScript:

renderScore: function (score) {
    var result = "";
    if (score && score > 0) {
        var css = score < 5 ? '' : score <= 15 ? 'warm' : score <= 30 ? 'hot' : 'supernova';
        result += '<span title="' + "number of 'useful comment' votes received" + '" class="' + css + '">' + score + '</span>';
    }
    this.jComment.find(".comment-score").html(result);
}

For some insufficient reason, "cool" was replaced by "" in line 4 of that snippet. The result is that comments with a score of less than 5 end up with a class of "", instead of "cool".

My best guess for why this happened is that someone removed the class at the request of a blackmailing unicorn.

I found the bug. Here's the relevant JavaScript:

renderScore: function (score) {
    var result = "";
    if (score && score > 0) {
        var css = score < 5 ? '' : score <= 15 ? 'warm' : score <= 30 ? 'hot' : 'supernova';
        result += '<span title="' + "number of 'useful comment' votes received" + '" class="' + css + '">' + score + '</span>';
    }
    this.jComment.find(".comment-score").html(result);
}

For some insufficient reason, 'cool' was replaced by ' in line 4 of that snippet. The result is that comments with a score of less than 5 end up with a class of '', instead of 'cool'.

My best guess for why this happened is that someone removed the class at the request of a blackmailing unicorn.

deleted 138 characters in body
Source Link
tbodt
  • 17k
  • 17
  • 22

I found the bug. Here's the relevant JavaScript (unminified to the best of my ability):

"renderScore"renderScore: function (score) {
    var htmlresult = "";
    if (score && score > 0) {
        var htmlClasscss = score < 5   ? "":
                      '' : score <= 15 ? "warm":
                      'warm' : score <= 30 ? "hot":
                                    'hot' : "supernova";'supernova';
        htmlresult += '<span title="numbertitle="' + "number of \'useful'useful comment\'comment' votes received" + '" class="' + htmlClasscss + '">' + score + "<'</span>"span>';
    }
    this.jComment.find(".comment-score").html(htmlresult);
}

For some insufficient reason, "cool" was replaced by "" in line 4 of that snippet. The result is that comments with a score of less than 5 end up with a class of "", instead of "cool".

My best guess for why this happened is that someone removed the class at the request of a blackmailing unicorn.

I found the bug. Here's the relevant JavaScript (unminified to the best of my ability):

"renderScore": function(score) {
    var html = "";
    if (score && score > 0) {
        var htmlClass = score < 5   ? "":
                        score <= 15 ? "warm":
                        score <= 30 ? "hot":
                                      "supernova";
        html += '<span title="number of \'useful comment\' votes received" class="' + htmlClass + '">' + score + "</span>"
    }
    this.jComment.find(".comment-score").html(html)
}

For some insufficient reason, "cool" was replaced by "" in line 4 of that snippet. The result is that comments with a score of less than 5 end up with a class of "", instead of "cool".

My best guess for why this happened is that someone removed the class at the request of a blackmailing unicorn.

I found the bug. Here's the relevant JavaScript:

renderScore: function (score) {
    var result = "";
    if (score && score > 0) {
        var css = score < 5 ? '' : score <= 15 ? 'warm' : score <= 30 ? 'hot' : 'supernova';
        result += '<span title="' + "number of 'useful comment' votes received" + '" class="' + css + '">' + score + '</span>';
    }
    this.jComment.find(".comment-score").html(result);
}

For some insufficient reason, "cool" was replaced by "" in line 4 of that snippet. The result is that comments with a score of less than 5 end up with a class of "", instead of "cool".

My best guess for why this happened is that someone removed the class at the request of a blackmailing unicorn.

Source Link
tbodt
  • 17k
  • 17
  • 22

I found the bug. Here's the relevant JavaScript (unminified to the best of my ability):

"renderScore": function(score) {
    var html = "";
    if (score && score > 0) {
        var htmlClass = score < 5   ? "":
                        score <= 15 ? "warm":
                        score <= 30 ? "hot":
                                      "supernova";
        html += '<span title="number of \'useful comment\' votes received" class="' + htmlClass + '">' + score + "</span>"
    }
    this.jComment.find(".comment-score").html(html)
}

For some insufficient reason, "cool" was replaced by "" in line 4 of that snippet. The result is that comments with a score of less than 5 end up with a class of "", instead of "cool".

My best guess for why this happened is that someone removed the class at the request of a blackmailing unicorn.