publishBehavior.js 402 B

123456789
  1. import { BehaviorSubject } from '../BehaviorSubject';
  2. import { ConnectableObservable } from '../observable/ConnectableObservable';
  3. export function publishBehavior(initialValue) {
  4. return function (source) {
  5. var subject = new BehaviorSubject(initialValue);
  6. return new ConnectableObservable(source, function () { return subject; });
  7. };
  8. }
  9. //# sourceMappingURL=publishBehavior.js.map