I have a series of promises (mostly ajax calls but a few deffereds).
I call them like so, my question is I also need to mix in some standard functions that do not return promises, I have had a go below, is this the correct way to do it?
Basically i want promise A, B and C to run, then do my non promise methods, once these are done, carry on with promise D and E.
this.promiseA()
.then(this.promiseB)
.then(this.promiseC)
.then(function(){
//do some methods that do not return promises
})
.then(this.promiseD)
.then(this.promiseE);