changeset a5f5cd68172c in sao:4.8
details: https://hg.tryton.org/sao?cmd=changeset;node=a5f5cd68172c
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 969996f0a4aa -r a5f5cd68172c src/view/tree.js
--- a/src/view/tree.js  Thu May 02 12:49:12 2019 +0200
+++ b/src/view/tree.js  Thu May 02 12:56:40 2019 +0200
@@ -214,9 +214,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