Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13091 closed bug (notabug)

progress for multiple deferred

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:


I was expecting a different result when using .progress() with multiple deferred:

http://jsfiddle.net/4vXdN/3/ : i was expecting "process1 done, process2 done, all ok".

http://jsfiddle.net/4vXdN/4/ : Even weirder, when i switch the order (process2, process1) , i get "undefined, process2 done, all ok".

Similarities to http://bugs.jquery.com/ticket/11894, but then I dont understand the second the "undefined" in the second jsfiddle.


Change History (2)

comment:1 Changed 10 years ago by fastfasterfastest

There are a couple of problems with your code. One is your usage of document.write. Another is that the promise that $.when returns calls its callback functions with *all* the promises passed to $.when. Here is an updated version of your first case: http://jsfiddle.net/fastfasterfastest/ewm5f/

Therefore, in my opinion the problem is in your code, not in jquery.

comment:2 Changed 10 years ago by dmethvin

Resolution: notabug
Status: newclosed

Please ask for help on a forum.

Note: See TracTickets for help on using tickets.