Compare commits

..

No commits in common. "562e2ea9dcb27c2f50a28531197deb2c9d7b6f0f" and "215eb20a55766e9130f9c55c5dfe50a802bd7bf4" have entirely different histories.

2 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 MiB

After

Width:  |  Height:  |  Size: 2.6 MiB

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);
this.children = flatten(l, instance.constructor.name);
}
cost() {
return sum(this.children.map(e => e.cost()));