1
0
Fork 0

Glider Instruments: Fix duplicate for-loop (AR-6201), Formatting

This commit is contained in:
Delta Echo 2021-05-03 15:36:23 +02:00
parent 79e1ca771f
commit b0430822b4
3 changed files with 3 additions and 7 deletions

View file

@ -86,12 +86,9 @@ var canvas_AR6201_base = {
canvas.parsesvg(canvas_group, file, {'font-mapper': font_mapper});
var svg_keys = me.getKeys();
var svg_keys = me.getKeys();
foreach(var key; svg_keys) {
me[key] = canvas_group.getElementById(key);
var svg_keys = me.getKeys();
foreach (var key; svg_keys) {
me[key] = canvas_group.getElementById(key);
var clip_el = canvas_group.getElementById(key ~ "_clip");
if (clip_el != nil) {
@ -106,7 +103,6 @@ var canvas_AR6201_base = {
me[key].set("clip", clip_rect);
me[key].set("clip-frame", canvas.Element.PARENT);
}
}
}
me.page = canvas_group;

View file

@ -59,7 +59,7 @@ var canvas_BXP6401_base = {
canvas.parsesvg(canvas_group, file, {'font-mapper': font_mapper});
var svg_keys = me.getKeys();
var svg_keys = me.getKeys();
foreach(var key; svg_keys) {
me[key] = canvas_group.getElementById(key);

View file

@ -53,7 +53,7 @@ var canvas_S3_base = {
canvas.parsesvg(canvas_group, file, {'font-mapper': font_mapper});
var svg_keys = me.getKeys();
var svg_keys = me.getKeys();
foreach(var key; svg_keys) {
me[key] = canvas_group.getElementById(key);