Repository navigation
refactor(ConnectableObservable): hide ConnectableObservable's members from public - #1244
Conversation
|
@kwonoj updated. could you review this? |
|
Would you mind to squash some of commits? Seems it doesn't need to breakdown into those numbers of commits. |
There was a problem hiding this comment.
Is there reason to make private field starts with _? Current codebase usually do not use those convention only except if field has separate getter / setter.
There was a problem hiding this comment.
Ah, I felt there are some implicit customs which is start with _ to mark a property as a private.
okay. I'll fix it
|
updated |
|
@kwonoj updated |
There was a problem hiding this comment.
it's just curiosity and assume it's not - does this comment appears editor's intellisense for typings? does JSDoc style comment appears?
There was a problem hiding this comment.
At least on vscode, JSDoc style will appear.
|
fixed |
There was a problem hiding this comment.
Rather than this comment, I'd just name it _closeSubscription ... generally, _name is idiomatic in the JavaScript community for "this is not a public API".
|
This LGTM, other than the one comment I left. Once you get that fixed it can be merged. |
…etSubject's members from public
|
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. |
ConnectableObservable<T>'s members may be overridden by user. So this change make themprotectedfor extensibility.RefCountSubscriber<T>_resetConnectable()belongs to ``RefCountSubscriberwhich is private class in ConnectableObservable.ts. So this change make itprivate`.ConnectableObservable<T>.subject/subscriptionfrom others, this change make themprotectedand add_closeSubscription()forConnectableSubscription