From 7e6f3467cd530dd52e6d97e96ea254d7300d7db2 Mon Sep 17 00:00:00 2001 From: TaoWei Date: Sat, 7 Jul 2018 21:44:17 +0800 Subject: [PATCH] style: add white space --- chapter-01/rxjs/timingSenseTest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 => {