…with an intermediate promise. Unit test to verify.
…ith a chained promise
…ctly use deferred.resolve/reject when we know it is guaranteed to be a when.defer()
…hen.js can now be loaded in a browser via AMD loader or script tag, and in node via require, or via any AMD or commonjs loader. Added isPromise docs to README. Updated API comments in source.
…at simplified the code a lot, so it feels right. Renamed when.Deferred to when.defer. Again, it feels simpler. Preparing for v0.9.0 release.
…t causes the first test to always fail.
…ise when given a promise as input, as per CommonJS Promise spec
…ec. Added chain() for chaining promises. Added initial API notes to README