Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mysterlune/deferred-example-jquery
https://github.com/mysterlune/deferred-example-jquery
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mysterlune/deferred-example-jquery
- Owner: mysterlune
- License: mit
- Created: 2014-02-18T23:10:43.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-18T23:26:08.000Z (almost 11 years ago)
- Last Synced: 2024-04-15T03:19:36.108Z (9 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#Example using jQuery.Deferred
This (admittedly non-exhaustive, possibly trite) example gives a simplified example of using jQuery.when().then().then().etc.etc.done() to explore resolve/reject behavior.
##Usage
Just clone the repo and do:npm install
The main dependency for this project is [jquery-deferred](https://www.npmjs.org/package/jquery-deferred), available on npmjs.org.
There aren't many dials to turn in the code. It's mainly a sandbox for futzing around with running a set of deferred objects and modifying things in code.
When you've installed the project, just do:
node ./
... and you should see some output.
##Conclusion
Feel free to contribute changes, corrections, and/or any freaky combinations of when/then/done chainings that expose fun or weird behavior.