4.1.1 • Published 11 years ago

domthen v4.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
11 years ago

domthen

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

Installation

$ npm install domthen

or

$ component install nathan7/domthen

API

domthen(obj)

Returns a promise, resolved with obj.result when obj.onsucces is called, rejected with obj.error when obj.onerror is called.

domthen.proto(constructor)

Adds .done and .then to the given constructor's prototype. For example, domthen.proto(DOMRequest).

License

MIT

4.1.1

11 years ago

4.1.0

11 years ago

4.0.1

11 years ago

4.0.0

11 years ago

3.0.0

11 years ago

2.1.0

11 years ago

2.0.0

11 years ago

1.0.0

11 years ago