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 {
320320 Observable<ActionEvent > bttnEvents =
321321 JavaFxObservable . actionEventsOf(incrementBttn);
322322
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);
325326
326327 incrementLabel. textProperty(). bind(binding1);
327328
@@ -334,9 +335,10 @@ public class RxJavaFXTest extends Application {
334335 Observable<String > textInputs =
335336 JavaFxObservable . valuesOf(textInput. textProperty());
336337
337- binding2 = JavaFxObserver . toBinding( textInputs. observeOn(Schedulers . computation())
338+ binding2 = textInputs. observeOn(Schedulers . computation())
338339 .map(s - > new StringBuilder (s). reverse(). toString())
339- .observeOn(JavaFxScheduler . platform()));
340+ .observeOn(JavaFxScheduler . platform())
341+ .to(JavaFxObserver :: toBinding);
340342
341343 flippedTextLabel. textProperty(). bind(binding2);
342344
You can’t perform that action at this time.
0 commit comments