I have
function SomeFunc() {
$.when($.ajax()).then(FunctionWhichDoesMoreAjax());
}
Now I need to wrap another call around this one.
$.when(SomeFunc()).then(FunctionWhichDoesMoreAjax2());
I tried modifying SomeFunc()
function SomeFunc() {
return $.when($.ajax()).then(return FunctionWhichDoesMoreAjax());
}
But, this broke the functionality entirely. The IDE reports error
Expected Expression
at return FunctionWhichDoesMoreAjax());
How am I supposed to sync these up?
try this: