This commit is contained in:
Florian Dold 2015-12-16 10:53:29 +01:00
parent 22246ea156
commit a9f3d077f9
2 changed files with 3 additions and 3 deletions

View File

@ -363,7 +363,7 @@ class SignatureStruct {
constructor(x) {
this.members = {};
for (let k in x) {
this.set(k[0], k[1]);
this.set(k, x[k]);
}
}
toPurpose(a) {

View File

@ -517,9 +517,9 @@ abstract class SignatureStruct {
abstract purpose(): SignaturePurpose;
private members: any = {};
constructor(x: any) {
constructor(x: { [name: string]: any }) {
for (let k in x) {
this.set(x, x[k]);
this.set(k, x[k]);
}
}