]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Avoid unused indexes 2339/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Fri, 13 Jul 2018 09:56:06 +0000 (12:56 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Fri, 13 Jul 2018 09:56:06 +0000 (12:56 +0300)
interface/js/app/symbols.js

index 9289337394824c5ee5b8ffe7cd791cf9b1cd2e71..71d57761740aeef7b0db1222efc0009bdda8df9c 100644 (file)
@@ -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) {