aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js')
-rw-r--r--node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js b/node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js
new file mode 100644
index 0000000..3887094
--- /dev/null
+++ b/node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js
@@ -0,0 +1,13 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.publishBehavior = void 0;
+var BehaviorSubject_1 = require("../BehaviorSubject");
+var ConnectableObservable_1 = require("../observable/ConnectableObservable");
+function publishBehavior(initialValue) {
+ return function (source) {
+ var subject = new BehaviorSubject_1.BehaviorSubject(initialValue);
+ return new ConnectableObservable_1.ConnectableObservable(source, function () { return subject; });
+ };
+}
+exports.publishBehavior = publishBehavior;
+//# 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