Opal-Estate-Pro/node_modules/rxjs/_esm5/symbol/observable.js

26 lines
721 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +02:00
/** PURE_IMPORTS_START .._util_root PURE_IMPORTS_END */
import { root } from '../util/root';
export function getSymbolObservable(context) {
var $$observable;
var Symbol = context.Symbol;
if (typeof Symbol === 'function') {
if (Symbol.observable) {
$$observable = Symbol.observable;
}
else {
$$observable = Symbol('observable');
Symbol.observable = $$observable;
}
}
else {
$$observable = '@@observable';
}
return $$observable;
}
export var observable = /*@__PURE__*/ getSymbolObservable(root);
/**
* @deprecated use observable instead
*/
export var $$observable = observable;
//# sourceMappingURL=observable.js.map