2.2.1 • Published 7 years ago

spine-awaitajax v2.2.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

spine-awaitajax

Build Status Coverage Status Dependency Status devDependency Status Downloads

Turns Spine/jQuery Ajax requests into single-callback form, for use with await/defer

NPM

What?

Iced CoffeeScript and tamejs offer the await/defer construct that lends itself well to the node-style async pattern callback(err, response), particularly when using a construct like errify/make_esc from iced error.

awaitajax lets you have your await and easy jQuery.ajax() -style options too. By building on iced, AJAX calls can be easily handled in one line.

Example

Regular

await Ajax.awaitGet {url: "https://www.google.com"}, defer err, response

Serial

await Ajax.awaitQueuedGet {url: "https://www.google.com"}, defer err, response
await Ajax.awaitQueuedGet {url: "http://siteaftergoogle.com"}, defer err, response

License

MIT

2.2.1

7 years ago

2.2.0

7 years ago

2.1.0

7 years ago

2.0.0

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago