Skip to content

Commit

Permalink
Pass in regular object to demonstrate it can be done.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickberkeley committed Nov 7, 2012
1 parent 450e313 commit 3cd8e06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -355,7 +355,7 @@ <h2>Create your own</h2>
function disableInputs(){ /* Disable form, return promise */ }
function postData(){ return $.post('api/'); }

$.when(showSpinner, disableInputs, postData)
$.when(showSpinner, disableInputs, postData, {random: 'obj'})
.done(function() { /* Clear form */ })
.fail(function() { /* Don't clear form, show error */ })
.always(function() { /* Hide spinner, re-enable form */ });
Expand Down

0 comments on commit 3cd8e06

Please sign in to comment.