Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.js used the Promise spec to handle asynchronous operations. All operations that are asynchronous will return an instance of the internal Promise object that exposes a then method which will take up to three callbacks, success, failed and progress. It also exposes useful helpers for these such as done, fail and progress.
- As of version 0.7.0 db.js’s Promise API is designed to work with jQuery, allowing you to link db.js Promises with other Promises.
- Note: It’s likely that other Promise libraries also integrate with it, jQuery is just the only tested on.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement