From: Alexander Moisseev Date: Fri, 13 Jul 2018 09:56:06 +0000 (+0300) Subject: [WebUI] Avoid unused indexes X-Git-Tag: 1.7.9~126^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4cb2f29f620ed78a739380d9edac4db7d2c1e1b0;p=rspamd.git [WebUI] Avoid unused indexes --- diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js index 928933739..71d577617 100644 --- a/interface/js/app/symbols.js +++ b/interface/js/app/symbols.js @@ -86,8 +86,8 @@ define(["jquery", "footable"], var freqs = []; var distinct_groups = []; - $.each(data, function (i, group) { - $.each(group.rules, function (i, item) { + data.forEach(function (group) { + group.rules.forEach(function (item) { var max = 20; var min = -20; if (item.weight > max) {