From 026c457acb406908289718ac78ff41be8b58e391 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 10 Nov 2014 10:27:44 +0100 Subject: [PATCH] SONAR-5610 Fix chrome freezes on the components page --- server/sonar-web/src/main/js/sortable.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/server/sonar-web/src/main/js/sortable.js b/server/sonar-web/src/main/js/sortable.js index edc48d12190..487165ae22b 100644 --- a/server/sonar-web/src/main/js/sortable.js +++ b/server/sonar-web/src/main/js/sortable.js @@ -28,14 +28,12 @@ }); rows.detach(); - var newRows = jQuery(); sortArray.forEach(function(a) { - var row = rows.eq(a.index); - row.appendTo(container); - newRows = newRows.add(row); + var row = rows[a.index]; + container.append(row); }); - stripe(newRows); + stripe(container.find('tr')); } -- 2.39.5