Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(BehaviorSubject): add getValue method to access value #853

Closed
wants to merge 4 commits into from
Closed

feat(BehaviorSubject): add getValue method to access value #853

wants to merge 4 commits into from

Conversation

benlesh
Copy link
Member

@benlesh benlesh commented Dec 1, 2015

  • adds getValue method to get inner value
  • further hides the value as _value
  • adds value property getter
  • purposefully excludes value property setter
  • adds tests around getValue method and value property

fixes #758

@@ -110,7 +110,7 @@ import {ConnectableObservable} from './observable/ConnectableObservable';
import {Notification} from './Notification';
import {EmptyError} from './util/EmptyError';
import {ArgumentOutOfRangeError} from './util/ArgumentOutOfRangeError';
import {nextTick} from './scheduler/nextTick';
import {ObjectUnsubscribedError} from './util/ObjectUnsubscribedError';
Copy link
Member

Choose a reason for hiding this comment

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

Build failed by removing importing nextTick in here still being used in line 121.

@kwonoj
Copy link
Member

kwonoj commented Dec 2, 2015

Change looks good to me except missing nextTick makes build failed.

- adds `getValue` method to get inner value
- further hides the value as `_value`
- adds `value` property getter
- purposefully excludes `value` property setter
- adds tests around `getValue` method and `value` property

fixes #758
this class was added to support throwing errors when members of Subjects were accessed in invalid ways after the Subject has been unsubscribed

related #859
related #758
@benlesh
Copy link
Member Author

benlesh commented Dec 8, 2015

Merged with ef83066... thank you for the review @kwonoj

@benlesh benlesh closed this Dec 8, 2015
@benlesh benlesh deleted the getValue branch April 27, 2016 17:19
@lock
Copy link

lock bot commented Jun 7, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Behaviour getValue functionality missing
2 participants