publishBehavior.js 461 B

1234567891011121314
  1. "use strict";
  2. var BehaviorSubject_1 = require('../BehaviorSubject');
  3. var multicast_1 = require('./multicast');
  4. /**
  5. * @param value
  6. * @return {ConnectableObservable<T>}
  7. * @method publishBehavior
  8. * @owner Observable
  9. */
  10. function publishBehavior(value) {
  11. return function (source) { return multicast_1.multicast(new BehaviorSubject_1.BehaviorSubject(value))(source); };
  12. }
  13. exports.publishBehavior = publishBehavior;
  14. //# sourceMappingURL=publishBehavior.js.map