diff options
author | tschicke-brown <tyler_schicke@brown.edu> | 2019-04-08 21:59:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-08 21:59:41 -0400 |
commit | fbb5f2c19ffd1278d31b432a74ec3ae747b85894 (patch) | |
tree | b6a4255bd3a0a3c30504639f3e0e7a48ebadd420 /src/client/util/TypedEvent.ts | |
parent | a2135bcc0a995378aad0e71ade832a4d526a37f0 (diff) | |
parent | e963f324fe8436ff5fc8ee21cdf091b6265690f9 (diff) |
Merge pull request #81 from browngraphicslab/propsRefactor
Props refactor
Diffstat (limited to 'src/client/util/TypedEvent.ts')
-rw-r--r-- | src/client/util/TypedEvent.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/util/TypedEvent.ts b/src/client/util/TypedEvent.ts index 0714a7f5c..1b251da25 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 |