JSFiddle - React, Tailwind, and code Playground
JavaScript
/*
Tested: 20121018
Problem: Either the documentation is incorrect, or jQuery 1.8.2 is busted. Passing in an array of doneCallbacks runs none of them.
Documentation from: http://api.jquery.com/deferred.then/ states:
deferred.then( doneCallbacks, failCallbacks [, progressCallbacks] )
doneCallbacks A function, or array of functions, called when the Deferred is resolved.
failCallbacks A function, or array of functions, called when the Deferred is rejected.
progressCallbacks A function, or array of functions, called when the Deferred notifies progress.
*/
$.get("/").then( [
function(){ alert("$.get FIRST in ARRAY succeeded"); },
function(){ alert("$.get SECOND in ARRAY succeeded"); }
], function(){ alert("$.get failed in first example");});
$.get("/").then(
function(){ alert("$.get WITHOUT ARRAY succeeded"); },
function(){ alert("$.get failed in second example"); }
);