You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
721 B
26 lines
721 B
2 years ago
|
/** 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
|