expand.js 910 B

123456789101112131415161718192021222324252627282930313233343536
  1. const veryVeryVeryVeryVeryVeryVeryLong = doc.expandedStates[doc.expandedStates.length - 1];
  2. const small = doc.expandedStates[doc.expandedStates.length - 1];
  3. const promises = [
  4. promise.resolve().then(console.log).catch(err => {
  5. console.log(err)
  6. return null
  7. }),
  8. redis.fetch(),
  9. other.fetch(),
  10. ];
  11. const promises = [
  12. promise.resolve().veryLongFunctionCall().veryLongFunctionCall().then(console.log).catch(err => {
  13. console.log(err)
  14. return null
  15. }),
  16. redis.fetch(),
  17. other.fetch(),
  18. ];
  19. window.FooClient.setVars({
  20. locale: getFooLocale({ page }),
  21. authorizationToken: data.token
  22. }).initVerify("foo_container");
  23. window.something.FooClient.setVars({
  24. locale: getFooLocale({ page }),
  25. authorizationToken: data.token
  26. }).initVerify("foo_container");
  27. window.FooClient.something.setVars({
  28. locale: getFooLocale({ page }),
  29. authorizationToken: data.token
  30. }).initVerify("foo_container");