diff --git a/chapter-01/rxjs/timingSenseTest.js b/chapter-01/rxjs/timingSenseTest.js index 8f16c2a..2657834 100644 --- a/chapter-01/rxjs/timingSenseTest.js +++ b/chapter-01/rxjs/timingSenseTest.js @@ -3,7 +3,7 @@ const mouseDown$ = Rx.Observable.fromEvent(holdMeButton, 'mousedown'); const mouseUp$ = Rx.Observable.fromEvent(holdMeButton, 'mouseup'); const holdTime$ = mouseUp$.timestamp().withLatestFrom(mouseDown$.timestamp(), (mouseUpEvent, mouseDownEvent) => { - return mouseUpEvent.timestamp- mouseDownEvent.timestamp; + return mouseUpEvent.timestamp - mouseDownEvent.timestamp; }); holdTime$.subscribe(ms => {