changeset c705a4443fff in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=c705a4443fff
description:
Do not reuse the same loop variable inside nested loop of affixes
issue8314
review253421002
diffstat:
src/view/tree.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (18 lines):
diff -r aa9521972425 -r c705a4443fff src/view/tree.js
--- a/src/view/tree.js Thu May 02 12:54:19 2019 +0200
+++ b/src/view/tree.js Thu May 02 12:56:40 2019 +0200
@@ -30,11 +30,11 @@
}
var affix, affix_attributes;
var affixes = node.childNodes;
- for (i = 0; i < affixes.length; i++) {
+ for (var i = 0; i < affixes.length; i++) {
affix = affixes[i];
affix_attributes = {};
- for (var i = 0, len = affix.attributes.length; i < len; i++) {
- var attribute = affix.attributes[i];
+ for (var j = 0, len = affix.attributes.length; j < len; j++) {
+ var attribute = affix.attributes[j];
affix_attributes[attribute.name] = attribute.value;
}
if (!affix_attributes.name) {