diff options
author | Abdullah Ahmed <abdullah_ahmed@brown.edu> | 2019-08-13 11:02:45 -0400 |
---|---|---|
committer | Abdullah Ahmed <abdullah_ahmed@brown.edu> | 2019-08-13 11:02:45 -0400 |
commit | 6c8b7a4e74068178b0f6ca9e491441bf982b4622 (patch) | |
tree | cc52f43409819694359d5fcd07f6f01cbd39dea1 /src/client/util/SerializationHelper.ts | |
parent | b38e808dc7790cc8698824329ae63b3af210996c (diff) | |
parent | 9dd2a31b72e5e527e2dae3b68f856ab8da879e93 (diff) |
Merge branch 'recommender_system' of https://github.com/browngraphicslab/Dash-Web into recommender_system
Diffstat (limited to 'src/client/util/SerializationHelper.ts')
-rw-r--r-- | src/client/util/SerializationHelper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/SerializationHelper.ts b/src/client/util/SerializationHelper.ts index 13302be21..ff048f647 100644 --- a/src/client/util/SerializationHelper.ts +++ b/src/client/util/SerializationHelper.ts @@ -34,7 +34,7 @@ export namespace SerializationHelper { return json; } - export async function Deserialize(obj: any, cb: (val: any) => void = emptyFunction): Promise<any> { + export async function Deserialize(obj: any): Promise<any> { if (obj === undefined || obj === null) { return undefined; } @@ -57,7 +57,7 @@ export namespace SerializationHelper { } const type = serializationTypes[obj.__type]; - const value = await new Promise(res => cb(deserialize(type.ctor, obj, (err, result) => res(result)))); + const value = await new Promise(res => deserialize(type.ctor, obj, (err, result) => res(result))); if (type.afterDeserialize) { await type.afterDeserialize(value); } |