Front end of the Slack clone application.

123456789101112131415161718192021222324
  1. import { root } from '../util/root';
  2. export function getSymbolObservable(context) {
  3. let $$observable;
  4. let Symbol = context.Symbol;
  5. if (typeof Symbol === 'function') {
  6. if (Symbol.observable) {
  7. $$observable = Symbol.observable;
  8. }
  9. else {
  10. $$observable = Symbol('observable');
  11. Symbol.observable = $$observable;
  12. }
  13. }
  14. else {
  15. $$observable = '@@observable';
  16. }
  17. return $$observable;
  18. }
  19. export const observable = getSymbolObservable(root);
  20. /**
  21. * @deprecated use observable instead
  22. */
  23. export const $$observable = observable;
  24. //# sourceMappingURL=observable.js.map