From f128ff6d53c707966df2316fc9d1d761ecc96cd6 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Mon, 3 Feb 2014 16:34:28 -0500 Subject: [PATCH] Remove firefox-specific table hack, as we're no longer using tables for messages (imported from commit 0d4e171c11e77e4000a8bfe7cbb8fc13e827d54d) --- static/js/message_list_view.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/static/js/message_list_view.js b/static/js/message_list_view.js index ad08c7d059..82e865743c 100644 --- a/static/js/message_list_view.js +++ b/static/js/message_list_view.js @@ -381,21 +381,6 @@ MessageListView.prototype = { table.append(rendered_elems); 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 = $("
"); - table.find('.ztable_layout_row').after(dummy); - $(document).idle({'idle': 1000*10, - 'onIdle': function () { - dummy.remove(); - }}); } _.each(rendered_elems, function (elem) {