aboutsummaryrefslogtreecommitdiff
path: root/src/fields/TupleField.ts
diff options
context:
space:
mode:
authorEleanor Eng <eleanor_eng@brown.edu>2019-04-09 16:35:06 -0400
committerEleanor Eng <eleanor_eng@brown.edu>2019-04-09 16:35:06 -0400
commitd361982c22738b35b42283176803158b33cf5cd3 (patch)
treea28405073490ed8e6a049338f140ba9e5e4458db /src/fields/TupleField.ts
parent1d5b7d0b6de932f7e09b3ab229b576f14a4ec71e (diff)
parent89fd4327db1536990b4a4dc218819a1077f82445 (diff)
pull from master
Diffstat (limited to 'src/fields/TupleField.ts')
-rw-r--r--src/fields/TupleField.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fields/TupleField.ts b/src/fields/TupleField.ts
index e2162c751..ad0f6f350 100644
--- a/src/fields/TupleField.ts
+++ b/src/fields/TupleField.ts
@@ -21,7 +21,7 @@ export class TupleField<T, U> extends BasicField<[T, U]> {
UndoManager.AddEvent({
undo: () => this.Data[change.index] = change.oldValue,
redo: () => this.Data[change.index] = change.newValue
- })
+ });
Server.UpdateField(this);
} else {
throw new Error("Why are you messing with the length of a tuple, huh?");
@@ -31,7 +31,7 @@ export class TupleField<T, U> extends BasicField<[T, U]> {
protected setData(value: [T, U]) {
if (this.observeDisposer) {
- this.observeDisposer()
+ this.observeDisposer();
}
this.data = observable(value) as (T | U)[] as [T, U];
this.observeTuple();
@@ -54,6 +54,6 @@ export class TupleField<T, U> extends BasicField<[T, U]> {
type: Types.Tuple,
data: this.Data,
_id: this.Id
- }
+ };
}
} \ No newline at end of file