domthen

promises for silly DOMRequest crap

domthen

Promises for silly DOM callback crap. Inspired by how fucking awful the DOM callback convention is.

$ npm install domthen

or

$ component install nathan7/domthen

Returns a promise, resolved when obj['on' + event] is called, rejected when obj.onerror is called.

MIT