changeset 14be8fa470b0 in sao:4.4
details: https://hg.tryton.org/sao?cmd=changeset;node=14be8fa470b0
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 0fdf1dfc5d55 -r 14be8fa470b0 src/view/tree.js
--- a/src/view/tree.js Thu May 16 17:47:37 2019 +0200
+++ b/src/view/tree.js Thu May 02 12:56:40 2019 +0200
@@ -186,9 +186,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) {