Skip to content

Instantly share code, notes, and snippets.

@cartant
Last active August 18, 2017 07:40
Show Gist options
  • Save cartant/c3fb06a4129df48db7920dd0ba46d325 to your computer and use it in GitHub Desktop.
Save cartant/c3fb06a4129df48db7920dd0ba46d325 to your computer and use it in GitHub Desktop.
if (typeof selector === 'function') {
return this.lift(new MulticastOperator(subjectFactory, selector));
}
const connectable: any = Object.create(this, connectableObservableDescriptor);
connectable.source = this;
connectable.subjectFactory = subjectFactory;
return <ConnectableObservable<T>> connectable;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment