aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js')
-rw-r--r--node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js b/node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js
new file mode 100644
index 0000000..42ae70c
--- /dev/null
+++ b/node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js
@@ -0,0 +1,9 @@
+import { BehaviorSubject } from '../BehaviorSubject';
+import { ConnectableObservable } from '../observable/ConnectableObservable';
+export function publishBehavior(initialValue) {
+ return function (source) {
+ var subject = new BehaviorSubject(initialValue);
+ return new ConnectableObservable(source, function () { return subject; });
+ };
+}
+//# sourceMappingURL=publishBehavior.js.map \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage