I'm using some deferred functions with the .done so, I'm having something like that:
askTime(number).done(formatTime).done(function(html){ times += html; }); But although formatTime returns data, the html var has the data returned by askTime.
I don't know where if the problem. formatTime receives a data variable which is returned by askTime but if I put:
askTime(number).done(formatTime(data)).done(function(html) It says that data isn't defined.