Compare commits

...
2 Commits
2 changed files with 2 additions and 2 deletions
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 MiB

After

Width:  |  Height:  |  Size: 2.3 MiB

+2 -2
View File
@@ -47,7 +47,7 @@ class Resistor {
${svg}
</g>
</svg>`
element.innerHTML += thesvg;
element.innerHTML = thesvg;
}
}
@@ -57,7 +57,7 @@ class NestedResistor extends Resistor {
constructor(l, func, instance) {
super(func(l.map(e => e.getOhmage())));
this.func = func
this.children = flatten(l, instance.constructor.name);
this.children = flatten(l, instance);
}
cost() {
return sum(this.children.map(e => e.cost()));