Promises for silly DOMRequest crap. Inspired by how fucking awful the DOM callback convention is.
$ npm install domthen
$ component install nathan7/domthen
Returns a promise, resolved with
obj.onsucces is called, rejected with
obj.onerror is called.
Adds .done and .then to the given constructor's prototype.