diff options
author | bob <bcz@cs.brown.edu> | 2019-06-25 09:09:28 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-06-25 09:09:28 -0400 |
commit | 66acf0237f2e1fe74660e5c2a035757403f79f8b (patch) | |
tree | a4fa797203ee262072c53ba845e6bcce214f151e /src/new_fields/Proxy.ts | |
parent | 038819c6f1490bfa3ef9a5a7404ea8688f2b9fd6 (diff) | |
parent | 45dee8324dc360953c584ba18f5b53220ecfdf61 (diff) |
Merge branch 'templatesMac' of https://github.com/browngraphicslab/Dash-Web into templatesMac
Diffstat (limited to 'src/new_fields/Proxy.ts')
-rw-r--r-- | src/new_fields/Proxy.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/new_fields/Proxy.ts b/src/new_fields/Proxy.ts index 130ec066e..38d874a68 100644 --- a/src/new_fields/Proxy.ts +++ b/src/new_fields/Proxy.ts @@ -48,9 +48,8 @@ export class ProxyField<T extends RefField> extends ObjectField { private failed = false; private promise?: Promise<any>; - value(callback?: ((field: T | undefined) => void)): T | undefined | FieldWaiting { + value(): T | undefined | FieldWaiting { if (this.cache) { - callback && callback(this.cache); return this.cache; } if (this.failed) { @@ -64,7 +63,6 @@ export class ProxyField<T extends RefField> extends ObjectField { return field; })); } - callback && this.promise.then(callback); return this.promise; } } |