aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/TypedEvent.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/client/util/TypedEvent.ts
parent1d5b7d0b6de932f7e09b3ab229b576f14a4ec71e (diff)
parent89fd4327db1536990b4a4dc218819a1077f82445 (diff)
pull from master
Diffstat (limited to 'src/client/util/TypedEvent.ts')
-rw-r--r--src/client/util/TypedEvent.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/util/TypedEvent.ts b/src/client/util/TypedEvent.ts
index 0714a7f5c..532ba78eb 100644
--- a/src/client/util/TypedEvent.ts
+++ b/src/client/util/TypedEvent.ts
@@ -36,7 +36,5 @@ export class TypedEvent<T> {
this.listenersOncer = [];
}
- pipe = (te: TypedEvent<T>): Disposable => {
- return this.on((e) => te.emit(e));
- }
+ pipe = (te: TypedEvent<T>): Disposable => this.on((e) => te.emit(e));
} \ No newline at end of file