changeset d57514d50b0a in sao:4.6
details: https://hg.tryton.org/sao?cmd=changeset;node=d57514d50b0a
description:
        Do not reuse the same loop variable inside nested loop of affixes

        issue8314
        review253421002
        (grafted from c705a4443fffa675bf874e9b3790a4322de5a35d)
diffstat:

 src/view/tree.js |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (16 lines):

diff -r 93d4127e72fd -r d57514d50b0a src/view/tree.js
--- a/src/view/tree.js  Thu May 16 17:47:15 2019 +0200
+++ b/src/view/tree.js  Thu May 02 12:56:40 2019 +0200
@@ -189,9 +189,9 @@
                     for (i = 0; i < affixes.length; i++) {
                         affix = affixes[i];
                         affix_attributes = {};
-                        for (i = 0, len = affix.attributes.length; i < len;
-                                i++) {
-                            attribute = affix.attributes[i];
+                        for (var j = 0, ln = affix.attributes.length; j < ln;
+                                j++) {
+                            attribute = affix.attributes[j];
                             affix_attributes[attribute.name] = attribute.value;
                         }
                         if (!affix_attributes.name) {

Reply via email to