After working with Node.js for a bit I've decided that passing both the error and the data to the same function encourages me to write better code.
.when(function (err, data) {
if (err) {
throw new Error(err);
}
console.log(data);
})
It relieves, ever so subtly, the mental burdon of "considering the error case".
I probably won't remove those methods until a version 2.0 in the semi-distant future, but know that they will probably be removed.
I've also written an AbstractHttpRequest (AHR) that wraps around jQuery
(I didn't want to do all of the browser correction for XHR and jsonp myself)
that passes back `err, data, xhr`.
So far it only exists in CampusBooksJS, but it will become its own minimodule once I add Node support.