aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/esm5/internal/operators/sample.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/dist/esm5/internal/operators/sample.js')
-rw-r--r--node_modules/rxjs/dist/esm5/internal/operators/sample.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/node_modules/rxjs/dist/esm5/internal/operators/sample.js b/node_modules/rxjs/dist/esm5/internal/operators/sample.js
deleted file mode 100644
index feff985..0000000
--- a/node_modules/rxjs/dist/esm5/internal/operators/sample.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import { innerFrom } from '../observable/innerFrom';
-import { operate } from '../util/lift';
-import { noop } from '../util/noop';
-import { createOperatorSubscriber } from './OperatorSubscriber';
-export function sample(notifier) {
- return operate(function (source, subscriber) {
- var hasValue = false;
- var lastValue = null;
- source.subscribe(createOperatorSubscriber(subscriber, function (value) {
- hasValue = true;
- lastValue = value;
- }));
- innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, function () {
- if (hasValue) {
- hasValue = false;
- var value = lastValue;
- lastValue = null;
- subscriber.next(value);
- }
- }, noop));
- });
-}
-//# sourceMappingURL=sample.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