You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+182-3Lines changed: 182 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,12 @@
1
1
jQuery async plugin
2
2
===================
3
3
4
-
jQuery async plugin add **Deferred** to handle like the [Mochikit.Async.Deferred](http://mochi.github.io/mochikit/doc/html/MochiKit/Async.html#fn-deferred).
4
+
jQuery async plugin adds **Deferred** to handle like the [Mochikit.Async.Deferred](http://mochi.github.io/mochikit/doc/html/MochiKit/Async.html#fn-deferred).
5
+
6
+
This plugin adds the Deferred functions to jQuery.Deferred object, but it does not conflict with other plugins.
7
+
jQuery.Deferred keeps original functions.
8
+
jQuery object is added only "**async**" function object.
9
+
5
10
6
11
## Installation
7
12
@@ -11,8 +16,6 @@ Include script after the jQuery library:
11
16
<scriptsrc="/path/to/jquery.async.js"></script>
12
17
```
13
18
14
-
This plugin adds **async** function to jQuery object.
15
-
16
19
$.async() is a shortcut function faster way of creating new Deferred sequence.
17
20
18
21
```javascript
@@ -69,6 +72,182 @@ $.async(function() {
69
72
});
70
73
```
71
74
75
+
## Function reference
76
+
77
+
*Portions of this document are reference from MochiKit.*
78
+
79
+
### $.Deferred() *Deferred*
80
+
81
+
The Deferred object usage is the same as the jQuery.Deferred.
Add the same function as both a callback and an errback as the next element on the callback sequence. This is useful for code that you want to guarantee to run.
0 commit comments