Glider Instruments: Fix duplicate for-loop (AR-6201), Formatting
This commit is contained in:
parent
79e1ca771f
commit
b0430822b4
3 changed files with 3 additions and 7 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue