aboutsummaryrefslogtreecommitdiff
path: root/src/fields/TupleField.ts
diff options
context:
space:
mode:
authorSam Wilkins <abdullah_ahmed@brown.edu>2019-04-09 18:05:57 -0400
committerSam Wilkins <abdullah_ahmed@brown.edu>2019-04-09 18:05:57 -0400
commit79a0d8d66204868158849afda6518f6c641c826b (patch)
treec36b6064cb8577f375107c6df4885c7a3e0dc9e0 /src/fields/TupleField.ts
parentb7d02ec188ecf043300ed858fdb68148b3e52a71 (diff)
parent89fd4327db1536990b4a4dc218819a1077f82445 (diff)
merged with 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