nathanleclaire/blog — pull request #5 by pablojim (2014-01-06 09:52:09+00:00)
Title: Use promise chaining instead of creating a new promise

Hi,

Nice post. Just thought in your ajax example using promise chaining would be more effective and a bit simpler than creating a new promise.

There are a few benefits:
- If you create a new promise and the request fails the new promise will never be rejected.
- Less code

Barry