Remove firefox-specific table hack, as we're no longer using tables for messages

(imported from commit 0d4e171c11e77e4000a8bfe7cbb8fc13e827d54d)
This commit is contained in:
Leo Franchi 2014-02-03 16:34:28 -05:00 committed by Jessica McKellar
parent 174a62eb7c
commit f128ff6d53
1 changed files with 0 additions and 15 deletions

View File

@ -381,21 +381,6 @@ MessageListView.prototype = {
table.append(rendered_elems); table.append(rendered_elems);
list.update_trailing_bookend(); list.update_trailing_bookend();
// XXX: This is absolutely awful. There is a firefox bug
// where when table rows as DOM elements are appended (as
// opposed to as a string) a border is sometimes added to the
// row. This border goes away if we add a dummy row to the
// top of the table (it doesn't go away on any reflow,
// though, as resizing the window doesn't make them go away).
// So, we add an empty row and then garbage collect them
// later when the user is idle.
var dummy = $("<div></div>");
table.find('.ztable_layout_row').after(dummy);
$(document).idle({'idle': 1000*10,
'onIdle': function () {
dummy.remove();
}});
} }
_.each(rendered_elems, function (elem) { _.each(rendered_elems, function (elem) {