[REF] qweb: t-foreach: remove x_parity

Part of #128
This commit is contained in:
Aaron Bohy
2019-06-07 08:52:11 +02:00
committed by Géry Debongnie
parent 1f9ec46236
commit e14a4fe338
5 changed files with 5 additions and 26 deletions
-1
View File
@@ -259,7 +259,6 @@ QWeb.addDirective({
ctx.indent();
ctx.addLine(`context.${name}_first = i === 0;`);
ctx.addLine(`context.${name}_last = i === _length${keysID} - 1;`);
ctx.addLine(`context.${name}_parity = i % 2 === 0 ? 'even' : 'odd';`);
ctx.addLine(`context.${name}_index = i;`);
ctx.addLine(`context.${name} = _${keysID}[i];`);
ctx.addLine(`context.${name}_value = _${valuesID}[i];`);