Hi Paul,
The code I submitted has the complete method commented, so it will not run twice.
My simple example was to illustrate my use case. What I'm trying to say is that you can't guarantee the order in which 'completefunc' will execute nor can you use it as part of the $.when mechanism. Your results from this simple test might do what you expected (which I'm interested in hearing). The more elaborate code I was running resulted in completefunc running after "I obey promise" function.
Excluding completefunc from the promise que could be the wanted behavior, I guess it just needs to be made known.
Ricardo
The code I submitted has the complete method commented, so it will not run twice.
My simple example was to illustrate my use case. What I'm trying to say is that you can't guarantee the order in which 'completefunc' will execute nor can you use it as part of the $.when mechanism. Your results from this simple test might do what you expected (which I'm interested in hearing). The more elaborate code I was running resulted in completefunc running after "I obey promise" function.
Excluding completefunc from the promise que could be the wanted behavior, I guess it just needs to be made known.
Ricardo