Permalink
Browse files

Pass in regular object to demonstrate it can be done.

  • Loading branch information...
1 parent 450e313 commit 3cd8e06f199cb605783665c443caee8b7ff7b719 @patrickberkeley committed Nov 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.html
View
@@ -355,7 +355,7 @@ <h1 class='fragment'>Give me something better.</h1>
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 */ });

0 comments on commit 3cd8e06

Please sign in to comment.