Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Manage*Subcription return Subscription now #73

Merged
merged 3 commits into from
Mar 6, 2017
Merged

Manage*Subcription return Subscription now #73

merged 3 commits into from
Mar 6, 2017

Conversation

StefMa
Copy link
Contributor

@StefMa StefMa commented Mar 6, 2017

This will fix #59

Nothing special here.
manageViewSubscription/disposable will now return the given Subscription/Disposable.
manageViewSubscriptions have introduced to add multiple Subscription/Disposable.

That is a small "API change". But only on RC's.
Because in earlier 0.8 RC's we have changed the API from manageViewSubscription(Subscription) to manageViewSubscription(Subscription...).
Not we "revertet" it to manageViewSubscription(Subscription) but added manageViewSubscriptions(Subscription...) (note the S here 😉)

}));
});

rxSubscriptionHelper.manageViewSubscriptions(showTextSub, onButtonClickSub);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if it's useful to create local variables for the subscriptions. But I also don't like method references. Just personal preference here 🦄

@passsy passsy merged commit 442c854 into GCX-HCI:master Mar 6, 2017
@passsy passsy deleted the feature/manageSub_return_sub branch March 6, 2017 16:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

Let manageSubscription(Subscription) return Subscription
2 participants