More Promises in Javascript

The framework is evolving. I now have the following operations on a Promise: then( function(result, ongoingPromise) ) then( function(result, ongoingPromise), function(failureReason, furtherInfo) ) otherwise( function(failureReason, furtherInfo, ongoingPromise) ) thenAlways( function(success, resultOrFail, ongoingPromise) ) The resultOrFail argument is either a result for success, or an array of [reason, furtherInfo] for failure. All methods take an optional […]