You can clone with
Added example for the context parameter
Fix example to show how to preserve Deferred
The initial Deferred object returned from $.wait will get lost if chained onto a call to .done(), .then(), etc, since those will return a Promise object.
Add optional context parameter
To set as the context in the resolved callback function
Updated reject example to use 5 second delay
Added code examples