aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-04-05 02:37:31 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-04-05 02:37:31 -0400
commit648d933777d86c81cb0983b5f7084380e61b8910 (patch)
tree790803e732dc82a884f063825ad5ca1483a9e6e0 /src
parentdbe95611c72eece3767f80543c921e4afaeaf294 (diff)
formatting
Diffstat (limited to 'src')
-rw-r--r--src/fields/Document.ts20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/fields/Document.ts b/src/fields/Document.ts
index 92d03d765..e4d35e860 100644
--- a/src/fields/Document.ts
+++ b/src/fields/Document.ts
@@ -321,24 +321,14 @@ export class Document extends Field {
}
@action
- SetDataOnPrototype<T, U extends Field & { Data: T }>(
- key: Key,
- value: T,
- ctor: { new(): U },
- replaceWrongType = true
- ) {
+ SetDataOnPrototype<T, U extends Field & { Data: T }>(key: Key, value: T, ctor: { new(): U }, replaceWrongType = true) {
this.GetTAsync(KeyStore.Prototype, Document, (f: Opt<Document>) => {
f && f.SetData(key, value, ctor);
});
}
@action
- SetData<T, U extends Field & { Data: T }>(
- key: Key,
- value: T,
- ctor: { new(data: T): U },
- replaceWrongType = true
- ) {
+ SetData<T, U extends Field & { Data: T }>(key: Key, value: T, ctor: { new(data: T): U }, replaceWrongType = true) {
let field = this.Get(key, true);
if (field instanceof ctor) {
field.Data = value;
@@ -399,11 +389,7 @@ export class Document extends Field {
}
GetValue() {
return this.Title;
- var title =
- (this._proxies.has(KeyStore.Title.Id) ? "???" : this.Title) +
- "(" +
- this.Id +
- ")";
+ var title = (this._proxies.has(KeyStore.Title.Id) ? "???" : this.Title) + "(" + this.Id + ")";
return title;
//throw new Error("Method not implemented.");
}