File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -320,8 +320,9 @@ public class RxJavaFXTest extends Application {
320
320
Observable<ActionEvent > bttnEvents =
321
321
JavaFxObservable . actionEventsOf(incrementBttn);
322
322
323
- binding1 = JavaFxObserver . toBinding(bttnEvents. map(e - > 1 ). scan(0 ,(x, y) - > x + y)
324
- .map(Object :: toString));
323
+ binding1 = bttnEvents. map(e - > 1 ). scan(0 ,(x, y) - > x + y)
324
+ .map(Object :: toString)
325
+ .to(JavaFxObserver :: toBinding);
325
326
326
327
incrementLabel. textProperty(). bind(binding1);
327
328
@@ -334,9 +335,10 @@ public class RxJavaFXTest extends Application {
334
335
Observable<String > textInputs =
335
336
JavaFxObservable . valuesOf(textInput. textProperty());
336
337
337
- binding2 = JavaFxObserver . toBinding( textInputs. observeOn(Schedulers . computation())
338
+ binding2 = textInputs. observeOn(Schedulers . computation())
338
339
.map(s - > new StringBuilder (s). reverse(). toString())
339
- .observeOn(JavaFxScheduler . platform()));
340
+ .observeOn(JavaFxScheduler . platform())
341
+ .to(JavaFxObserver :: toBinding);
340
342
341
343
flippedTextLabel. textProperty(). bind(binding2);
342
344
You can’t perform that action at this time.
0 commit comments