nested.js 1.1 KB

123456789101112131415161718192021222324252627282930
  1. someObject.someFunction().then(function() {
  2. return someObject.someFunction().then(function() {
  3. return someObject.someFunction().then(function() {
  4. return someObject.someFunction().then(function() {
  5. return someObject.someFunction().then(function() {
  6. return someObject.someFunction().then(function() {
  7. return someObject.someFunction().then(function() {
  8. return someObject.someFunction().then(function() {
  9. return someObject.someFunction().then(function() {
  10. return someObject.someFunction().then(function() {
  11. return someObject.someFunction().then(function() {
  12. return someObject.someFunction().then(function() {
  13. return someObject.someFunction().then(function() {
  14. return someObject.someFunction().then(function() {
  15. anotherFunction();
  16. });
  17. });
  18. });
  19. });
  20. });
  21. });
  22. });
  23. });
  24. });
  25. });
  26. });
  27. });
  28. });
  29. });